Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-07-18 14:44:06 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-07-18 14:44:06 +0400
commitc43989c7c1242b08348a922702ff163b9fa09ea7 (patch)
treedacfc1d1c630f605371b585dbfd4eb426a6e0baf /core/Menu/MenuAbstract.php
parent9df00a69dc93f29bd9a8efbe8bb239a3b9e07886 (diff)
refs #5820 better naming
Diffstat (limited to 'core/Menu/MenuAbstract.php')
-rw-r--r--core/Menu/MenuAbstract.php4
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;
}