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:
Diffstat (limited to 'plugins/Live/Live.php')
-rw-r--r--plugins/Live/Live.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Live/Live.php b/plugins/Live/Live.php
index e08d556b0a..f309877ce0 100644
--- a/plugins/Live/Live.php
+++ b/plugins/Live/Live.php
@@ -12,6 +12,7 @@ namespace Piwik\Plugins\Live;
use Piwik\Common;
+use Piwik\Menu\MenuMain;
use Piwik\Piwik;
use Piwik\WidgetsList;
@@ -52,7 +53,7 @@ class Live extends \Piwik\Plugin
public function addMenu()
{
- Piwik_AddMenu('General_Visitors', 'Live_VisitorLog', array('module' => 'Live', 'action' => 'indexVisitorLog'), true, $order = 5);
+ MenuMain::getInstance()->add('General_Visitors', 'Live_VisitorLog', array('module' => 'Live', 'action' => 'indexVisitorLog'), true, $order = 5);
}
public function addWidget()