diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-09 13:45:41 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-09 13:45:41 +0400 |
commit | 500373c8f5bb32fa8c3488c551f357570c80e78d (patch) | |
tree | 12d4ea151445a1849e9ed4a06583a4fa956d3da5 /plugins/Referrers | |
parent | 88a1d58d355430416f352c22ca3e4a6d56032bcc (diff) |
Refs #4202 Menu refactor GO. This one is tricky...
Diffstat (limited to 'plugins/Referrers')
-rw-r--r-- | plugins/Referrers/Referrers.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Referrers/Referrers.php b/plugins/Referrers/Referrers.php index 96cd26d111..e2714706eb 100644 --- a/plugins/Referrers/Referrers.php +++ b/plugins/Referrers/Referrers.php @@ -12,6 +12,7 @@ namespace Piwik\Plugins\Referrers; use Piwik\ArchiveProcessor; use Piwik\Common; +use Piwik\Menu\MenuMain; use Piwik\Piwik; use Piwik\SettingsPiwik; use Piwik\WidgetsList; @@ -230,11 +231,11 @@ class Referrers extends \Piwik\Plugin */ function addMenus() { - Piwik_AddMenu('Referrers_Referrers', '', array('module' => 'Referrers', 'action' => 'index'), true, 20); - Piwik_AddMenu('Referrers_Referrers', 'General_Overview', array('module' => 'Referrers', 'action' => 'index'), true, 1); - Piwik_AddMenu('Referrers_Referrers', 'Referrers_SubmenuSearchEngines', array('module' => 'Referrers', 'action' => 'getSearchEnginesAndKeywords'), true, 2); - Piwik_AddMenu('Referrers_Referrers', 'Referrers_SubmenuWebsites', array('module' => 'Referrers', 'action' => 'indexWebsites'), true, 3); - Piwik_AddMenu('Referrers_Referrers', 'Referrers_Campaigns', array('module' => 'Referrers', 'action' => 'indexCampaigns'), true, 4); + MenuMain::getInstance()->add('Referrers_Referrers', '', array('module' => 'Referrers', 'action' => 'index'), true, 20); + MenuMain::getInstance()->add('Referrers_Referrers', 'General_Overview', array('module' => 'Referrers', 'action' => 'index'), true, 1); + MenuMain::getInstance()->add('Referrers_Referrers', 'Referrers_SubmenuSearchEngines', array('module' => 'Referrers', 'action' => 'getSearchEnginesAndKeywords'), true, 2); + MenuMain::getInstance()->add('Referrers_Referrers', 'Referrers_SubmenuWebsites', array('module' => 'Referrers', 'action' => 'indexWebsites'), true, 3); + MenuMain::getInstance()->add('Referrers_Referrers', 'Referrers_Campaigns', array('module' => 'Referrers', 'action' => 'indexCampaigns'), true, 4); } /** |