diff options
Diffstat (limited to 'core/Menu/MenuAbstract.php')
-rw-r--r-- | core/Menu/MenuAbstract.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Menu/MenuAbstract.php b/core/Menu/MenuAbstract.php index 69b48f76b1..3c3fd4e013 100644 --- a/core/Menu/MenuAbstract.php +++ b/core/Menu/MenuAbstract.php @@ -55,7 +55,7 @@ abstract class MenuAbstract extends Singleton * * @return \Piwik\Plugin\Menu[] */ - protected function getAvailableMenus() + protected function getAllMenus() { if (!empty(self::$menus)) { return self::$menus; @@ -82,6 +82,8 @@ abstract class MenuAbstract extends Singleton public function add($menuName, $subMenuName, $url, $displayedForCurrentUser = true, $order = 50, $tooltip = false) { if (!$displayedForCurrentUser) { + // TODO this parameter should be removed and instead menu items should be only added if it is supposed to be + // displayed. Won't do it now to stay backward compatible. For Piwik 3.0 we should do it. return; } |