aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php
index 16f350dc3..b2376791b 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -3,6 +3,7 @@
* Initialize some defaults needed for DokuWiki
*/
+use dokuwiki\Extension\Event;
use dokuwiki\Extension\EventHandler;
/**
@@ -221,7 +222,7 @@ global $EVENT_HANDLER;
$EVENT_HANDLER = new EventHandler();
$local = $conf['lang'];
-trigger_event('INIT_LANG_LOAD', $local, 'init_lang', true);
+Event::createAndTrigger('INIT_LANG_LOAD', $local, 'init_lang', true);
// setup authentication system