diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-05-20 10:10:27 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-05-20 10:10:27 +0400 |
commit | 307ec31f2cfebd9c8bf9caba575e2864d42c8597 (patch) | |
tree | 2d6120c412b272344d204e9947fb3859bb7b3aa7 /plugins/Installation/Menu.php | |
parent | 45ae10e999baf0dfa066e5daae00bca824a68191 (diff) |
refs #5192 added generator for menus, updated more plugins to use menu class, fixed some bugs, improved design, fixed tests, ...
Diffstat (limited to 'plugins/Installation/Menu.php')
-rw-r--r-- | plugins/Installation/Menu.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/Installation/Menu.php b/plugins/Installation/Menu.php new file mode 100644 index 0000000000..6637a1774b --- /dev/null +++ b/plugins/Installation/Menu.php @@ -0,0 +1,23 @@ +<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Installation; + +use Piwik\Menu\MenuAdmin; +use Piwik\Piwik; + +class Menu extends \Piwik\Plugin\Menu +{ + public function configureAdminMenu(MenuAdmin $menu) + { + $menu->add('General_Settings', 'Installation_SystemCheck', + array('module' => 'Installation', 'action' => 'systemCheckPage'), + Piwik::hasUserSuperUserAccess(), + $order = 15); + } +} |