diff options
author | Andreas Gohr <andi@splitbrain.org> | 2018-06-15 17:35:53 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2019-04-20 21:48:53 +0200 |
commit | cbb44eabe033d70affb048ec0daf4e579e09dd20 (patch) | |
tree | 97a8a28e9cabd7aa4e54253487f071d87f840c87 /inc/Remote/ApiCore.php | |
parent | e1d9dcc8b460b6f029ac9c8d5d3b8d23b6e73402 (diff) | |
download | dokuwiki-cbb44eabe033d70affb048ec0daf4e579e09dd20.tar.gz dokuwiki-cbb44eabe033d70affb048ec0daf4e579e09dd20.zip |
deprecated trigger_event() in favor of a static method on Event
Diffstat (limited to 'inc/Remote/ApiCore.php')
-rw-r--r-- | inc/Remote/ApiCore.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/Remote/ApiCore.php b/inc/Remote/ApiCore.php index 238691ea8..f52e21be3 100644 --- a/inc/Remote/ApiCore.php +++ b/inc/Remote/ApiCore.php @@ -6,6 +6,7 @@ use Doku_Renderer_xhtml; use dokuwiki\ChangeLog\MediaChangeLog; use dokuwiki\ChangeLog\PageChangeLog; use dokuwiki\Extension\AuthPlugin; +use dokuwiki\Extension\Event; define('DOKU_API_VERSION', 10); @@ -981,7 +982,7 @@ class ApiCore 'sticky' => false, 'silent' => true, ); - $ok = trigger_event('AUTH_LOGIN_CHECK', $evdata, 'auth_login_wrapper'); + $ok = Event::createAndTrigger('AUTH_LOGIN_CHECK', $evdata, 'auth_login_wrapper'); } session_write_close(); // we're done with the session |