diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-09 13:45:41 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-09 13:45:41 +0400 |
commit | 500373c8f5bb32fa8c3488c551f357570c80e78d (patch) | |
tree | 12d4ea151445a1849e9ed4a06583a4fa956d3da5 /plugins/DBStats | |
parent | 88a1d58d355430416f352c22ca3e4a6d56032bcc (diff) |
Refs #4202 Menu refactor GO. This one is tricky...
Diffstat (limited to 'plugins/DBStats')
-rw-r--r-- | plugins/DBStats/DBStats.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php index c1f3c58f59..be12d261fa 100644 --- a/plugins/DBStats/DBStats.php +++ b/plugins/DBStats/DBStats.php @@ -13,6 +13,7 @@ namespace Piwik\Plugins\DBStats; use Piwik\Common; use Piwik\Date; +use Piwik\Menu\MenuAdmin; use Piwik\Option; use Piwik\Piwik; use Piwik\ScheduledTask; @@ -41,7 +42,7 @@ class DBStats extends \Piwik\Plugin function addMenu() { - Piwik_AddAdminSubMenu('CoreAdminHome_MenuDiagnostic', 'DBStats_DatabaseUsage', + MenuAdmin::getInstance()->add('CoreAdminHome_MenuDiagnostic', 'DBStats_DatabaseUsage', array('module' => 'DBStats', 'action' => 'index'), Piwik::isUserIsSuperUser(), $order = 6); |