diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-05-20 02:07:40 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-05-20 02:07:40 +0400 |
commit | 009a6f21177e8cb6366577d8f54024e896bb0d8e (patch) | |
tree | 70edeaf31d0b59acff6f22f47e1847349bc6728c /plugins/Provider | |
parent | 84a7e582a45a8c65b34035819a23c6e1b59794be (diff) |
refs #5192 starting a little Menu refactoring
Diffstat (limited to 'plugins/Provider')
-rw-r--r-- | plugins/Provider/Provider.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/Provider/Provider.php b/plugins/Provider/Provider.php index 9a10b89a27..10c2fe5bde 100644 --- a/plugins/Provider/Provider.php +++ b/plugins/Provider/Provider.php @@ -14,6 +14,7 @@ use Piwik\Common; use Piwik\Db; use Piwik\FrontController; use Piwik\IP; +use Piwik\Menu\MenuAbstract; use Piwik\Menu\MenuMain; use Piwik\Piwik; use Piwik\Plugin\ViewDataTable; @@ -93,10 +94,10 @@ class Provider extends \Piwik\Plugin WidgetsList::add('General_Visitors', 'Provider_WidgetProviders', 'Provider', 'getProvider'); } - public function addMenu() + public function addMenu(MenuAbstract $menu) { - MenuMain::getInstance()->rename('General_Visitors', 'UserCountry_SubmenuLocations', - 'General_Visitors', 'Provider_SubmenuLocationsProvider'); + $menu->rename('General_Visitors', 'UserCountry_SubmenuLocations', + 'General_Visitors', 'Provider_SubmenuLocationsProvider'); } public function postLoad() |