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/Installation/Installation.php | |
parent | 84a7e582a45a8c65b34035819a23c6e1b59794be (diff) |
refs #5192 starting a little Menu refactoring
Diffstat (limited to 'plugins/Installation/Installation.php')
-rw-r--r-- | plugins/Installation/Installation.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Installation/Installation.php b/plugins/Installation/Installation.php index eff0fde648..90e07944d1 100644 --- a/plugins/Installation/Installation.php +++ b/plugins/Installation/Installation.php @@ -11,6 +11,7 @@ namespace Piwik\Plugins\Installation; use Piwik\Common; use Piwik\Config; use Piwik\FrontController; +use Piwik\Menu\MenuAbstract; use Piwik\Menu\MenuAdmin; use Piwik\Piwik; use Piwik\Translate; @@ -95,9 +96,9 @@ class Installation extends \Piwik\Plugin /** * Adds the 'System Check' admin page if the user is the Super User. */ - public function addMenu() + public function addMenu(MenuAbstract $menu) { - MenuAdmin::addEntry('Installation_SystemCheck', + $menu->add('Installation_SystemCheck', array('module' => 'Installation', 'action' => 'systemCheckPage'), Piwik::hasUserSuperUserAccess(), $order = 15); |