Skip to content

Commit

Permalink
Refs #2135
Browse files Browse the repository at this point in the history
    * Not forwarding segment parameter to the top menu links

    Note: ideally we should display the Segment Editor on the WIDGET and API pages refs #3934
  • Loading branch information
mattab committed May 17, 2013
1 parent 1f87f85 commit 047412d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/API/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getListHooksRegistered()

public function addTopMenu()
{
$apiUrlParams = array('module' => 'API', 'action' => 'listAllAPI');
$apiUrlParams = array('module' => 'API', 'action' => 'listAllAPI', 'segment' => false);
$tooltip = Piwik_Translate('API_TopLinkTooltip');

Piwik_AddTopMenu('General_API', $apiUrlParams, true, 7, $isHTML = false, $tooltip);
Expand Down
2 changes: 1 addition & 1 deletion plugins/Feedback/Feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function addTopMenu()
{
Piwik_AddTopMenu(
'General_GiveUsYourFeedback',
array('module' => 'Feedback', 'action' => 'index'),
array('module' => 'Feedback', 'action' => 'index', 'segment' => false),
true,
$order = 20,
$isHTML = false,
Expand Down
2 changes: 1 addition & 1 deletion plugins/MultiSites/MultiSites.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function getReportMetadata($notification)

public function addTopMenu()
{
$urlParams = array('module' => 'MultiSites', 'action' => 'index');
$urlParams = array('module' => 'MultiSites', 'action' => 'index', 'segment' => false);
$tooltip = Piwik_Translate('MultiSites_TopLinkTooltip');
Piwik_AddTopMenu('General_MultiSitesSummary', $urlParams, true, 3, $isHTML = false, $tooltip);
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/PDFReports/PDFReports.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ function addTopMenu()
{
Piwik_AddTopMenu(
$this->getTopMenuTranslationKey(),
array('module' => 'PDFReports', 'action' => 'index'),
array('module' => 'PDFReports', 'action' => 'index', 'segment' => false),
true,
13,
$isHTML = false,
Expand Down
2 changes: 1 addition & 1 deletion plugins/Widgetize/Widgetize.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getListHooksRegistered()
public function addTopMenu()
{
$tooltip = Piwik_Translate('Widgetize_TopLinkTooltip');
$urlParams = array('module' => 'Widgetize', 'action' => 'index');
$urlParams = array('module' => 'Widgetize', 'action' => 'index', 'segment' => false);

Piwik_AddTopMenu('General_Widgets', $urlParams, true, 5, $isHTML = false, $tooltip);
}
Expand Down

0 comments on commit 047412d

Please sign in to comment.