aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Menu
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2018-06-15 17:35:53 +0200
committerAndreas Gohr <andi@splitbrain.org>2019-04-20 21:48:53 +0200
commitcbb44eabe033d70affb048ec0daf4e579e09dd20 (patch)
tree97a8a28e9cabd7aa4e54253487f071d87f840c87 /inc/Menu
parente1d9dcc8b460b6f029ac9c8d5d3b8d23b6e73402 (diff)
downloaddokuwiki-cbb44eabe033d70affb048ec0daf4e579e09dd20.tar.gz
dokuwiki-cbb44eabe033d70affb048ec0daf4e579e09dd20.zip
deprecated trigger_event() in favor of a static method on Event
Diffstat (limited to 'inc/Menu')
-rw-r--r--inc/Menu/AbstractMenu.php3
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'];
}