diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-01-08 00:53:38 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-01-08 00:53:38 +0300 |
commit | 5c5d79b82465a51a43b8a141d4719e7227747652 (patch) | |
tree | 46ee068c9813490d10bde6b903e018be7ec1e861 /plugins/CorePluginsAdmin | |
parent | e569449212f6bb1e0e33b54f443fceff27371e4f (diff) |
moving "Plugins" and "Themes" to manage section. Displaying Marketplace only to superusers as it is already displayed in the user menu anyway
Diffstat (limited to 'plugins/CorePluginsAdmin')
-rw-r--r-- | plugins/CorePluginsAdmin/Menu.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/CorePluginsAdmin/Menu.php b/plugins/CorePluginsAdmin/Menu.php index bda9caa9db..3133bed3e5 100644 --- a/plugins/CorePluginsAdmin/Menu.php +++ b/plugins/CorePluginsAdmin/Menu.php @@ -45,15 +45,15 @@ class Menu extends \Piwik\Plugin\Menu } if ($hasSuperUserAcess) { - $menu->addPlatformItem(Piwik::translate('General_Plugins') . $pluginsUpdateMessage, + $menu->addManageItem(Piwik::translate('General_Plugins') . $pluginsUpdateMessage, $this->urlForAction('plugins', array('activated' => '')), - $order = 1); - $menu->addPlatformItem(Piwik::translate('CorePluginsAdmin_Themes') . $themesUpdateMessage, + $order = 4); + $menu->addManageItem(Piwik::translate('CorePluginsAdmin_Themes') . $themesUpdateMessage, $this->urlForAction('themes', array('activated' => '')), - $order = 3); + $order = 5); } - if ($this->isAllowedToSeeMarketPlace()) { + if (Piwik::hasUserSuperUserAccess() && CorePluginsAdmin::isMarketplaceEnabled()) { $menu->addPlatformItem('CorePluginsAdmin_Marketplace', $this->urlForAction('browsePlugins', array('activated' => '')), $order = 5); |