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/DBStats/DBStats.php
parent84a7e582a45a8c65b34035819a23c6e1b59794be (diff)
refs #5192 starting a little Menu refactoring
Diffstat (limited to 'plugins/DBStats/DBStats.php')
-rw-r--r--plugins/DBStats/DBStats.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php
index d2a843e690..4b95c95f1c 100644
--- a/plugins/DBStats/DBStats.php
+++ b/plugins/DBStats/DBStats.php
@@ -9,6 +9,7 @@
namespace Piwik\Plugins\DBStats;
use Piwik\Date;
+use Piwik\Menu\MenuAbstract;
use Piwik\Menu\MenuAdmin;
use Piwik\Option;
use Piwik\Piwik;
@@ -41,9 +42,9 @@ class DBStats extends \Piwik\Plugin
);
}
- function addMenu()
+ function addMenu(MenuAbstract $menu)
{
- MenuAdmin::getInstance()->add('CoreAdminHome_MenuDiagnostic', 'DBStats_DatabaseUsage',
+ $menu->add('CoreAdminHome_MenuDiagnostic', 'DBStats_DatabaseUsage',
array('module' => 'DBStats', 'action' => 'index'),
Piwik::hasUserSuperUserAccess(),
$order = 6);