diff options
Diffstat (limited to 'plugins/DBStats/DBStats.php')
-rw-r--r-- | plugins/DBStats/DBStats.php | 5 |
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); |