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:
authormattab <matthieu.aubry@gmail.com>2013-10-09 13:45:41 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-09 13:45:41 +0400
commit500373c8f5bb32fa8c3488c551f357570c80e78d (patch)
tree12d4ea151445a1849e9ed4a06583a4fa956d3da5 /plugins/ExampleUI
parent88a1d58d355430416f352c22ca3e4a6d56032bcc (diff)
Refs #4202 Menu refactor GO. This one is tricky...
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r--plugins/ExampleUI/ExampleUI.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/ExampleUI/ExampleUI.php b/plugins/ExampleUI/ExampleUI.php
index 2c22bb90b7..e5d11ffddd 100644
--- a/plugins/ExampleUI/ExampleUI.php
+++ b/plugins/ExampleUI/ExampleUI.php
@@ -10,6 +10,7 @@
*/
namespace Piwik\Plugins\ExampleUI;
+use Piwik\Menu\MenuMain;
/**
* @package ExampleUI
@@ -28,7 +29,7 @@ class ExampleUI extends \Piwik\Plugin
function addMenus()
{
- Piwik_AddMenu('UI Framework', '', array('module' => 'ExampleUI', 'action' => 'dataTables'), true, 30);
+ MenuMain::getInstance()->add('UI Framework', '', array('module' => 'ExampleUI', 'action' => 'dataTables'), true, 30);
$this->addSubMenu('Data tables', 'dataTables', 1);
$this->addSubMenu('Bar graph', 'barGraph', 2);
@@ -40,6 +41,6 @@ class ExampleUI extends \Piwik\Plugin
private function addSubMenu($subMenu, $action, $order)
{
- Piwik_AddMenu('UI Framework', $subMenu, array('module' => 'ExampleUI', 'action' => $action), true, $order);
+ MenuMain::getInstance()->add('UI Framework', $subMenu, array('module' => 'ExampleUI', 'action' => $action), true, $order);
}
}