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-05-20 02:07:40 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-05-20 02:07:40 +0400
commit009a6f21177e8cb6366577d8f54024e896bb0d8e (patch)
tree70edeaf31d0b59acff6f22f47e1847349bc6728c /plugins/VisitorInterest/VisitorInterest.php
parent84a7e582a45a8c65b34035819a23c6e1b59794be (diff)
refs #5192 starting a little Menu refactoring
Diffstat (limited to 'plugins/VisitorInterest/VisitorInterest.php')
-rw-r--r--plugins/VisitorInterest/VisitorInterest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/VisitorInterest/VisitorInterest.php b/plugins/VisitorInterest/VisitorInterest.php
index c94fa7227f..4661b34437 100644
--- a/plugins/VisitorInterest/VisitorInterest.php
+++ b/plugins/VisitorInterest/VisitorInterest.php
@@ -10,6 +10,7 @@ namespace Piwik\Plugins\VisitorInterest;
use Piwik\ArchiveProcessor;
use Piwik\FrontController;
+use Piwik\Menu\MenuAbstract;
use Piwik\Menu\MenuMain;
use Piwik\Metrics;
use Piwik\Piwik;
@@ -107,10 +108,10 @@ class VisitorInterest extends \Piwik\Plugin
WidgetsList::add('General_Visitors', 'VisitorInterest_WidgetVisitsByDaysSinceLast', 'VisitorInterest', 'getNumberOfVisitsByDaysSinceLast');
}
- public function addMenu()
+ public function addMenu(MenuAbstract $menu)
{
- MenuMain::getInstance()->rename('General_Visitors', 'VisitFrequency_SubmenuFrequency',
- 'General_Visitors', 'VisitorInterest_Engagement');
+ $menu->rename('General_Visitors', 'VisitFrequency_SubmenuFrequency',
+ 'General_Visitors', 'VisitorInterest_Engagement');
}
function postLoad()