diff options
Diffstat (limited to 'inc/Menu/AbstractMenu.php')
-rw-r--r-- | inc/Menu/AbstractMenu.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/Menu/AbstractMenu.php b/inc/Menu/AbstractMenu.php index ce021ab64..37e5d2cc3 100644 --- a/inc/Menu/AbstractMenu.php +++ b/inc/Menu/AbstractMenu.php @@ -2,6 +2,7 @@ namespace dokuwiki\Menu; +use dokuwiki\Extension\Event; use dokuwiki\Menu\Item\AbstractItem; /** @@ -42,7 +43,7 @@ abstract class AbstractMenu implements MenuInterface { 'view' => $this->view, 'items' => array(), ); - trigger_event('MENU_ITEMS_ASSEMBLY', $data, array($this, 'loadItems')); + Event::createAndTrigger('MENU_ITEMS_ASSEMBLY', $data, array($this, 'loadItems')); return $data['items']; } |