diff options
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r-- | plugins/ExampleUI/Menu.php | 4 | ||||
-rw-r--r-- | plugins/ExampleUI/templates/notifications.twig | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ExampleUI/Menu.php b/plugins/ExampleUI/Menu.php index 35cf0d70b5..a99cca552c 100644 --- a/plugins/ExampleUI/Menu.php +++ b/plugins/ExampleUI/Menu.php @@ -8,11 +8,11 @@ */ namespace Piwik\Plugins\ExampleUI; -use Piwik\Menu\MenuUser; +use Piwik\Menu\MenuAdmin; class Menu extends \Piwik\Plugin\Menu { - public function configureUserMenu(MenuUser $menu) + public function configureAdminMenu(MenuAdmin $menu) { $menu->addPlatformItem('UI Notifications', $this->urlForAction('notifications'), $order = 10); } diff --git a/plugins/ExampleUI/templates/notifications.twig b/plugins/ExampleUI/templates/notifications.twig index ca69fcd8de..f47be46a0f 100644 --- a/plugins/ExampleUI/templates/notifications.twig +++ b/plugins/ExampleUI/templates/notifications.twig @@ -1,4 +1,4 @@ -{% extends 'user.twig' %} +{% extends 'admin.twig' %} {% set title %}UI Notification demo{% endset %} |