From cbb44eabe033d70affb048ec0daf4e579e09dd20 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 15 Jun 2018 17:35:53 +0200 Subject: deprecated trigger_event() in favor of a static method on Event --- inc/actions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc/actions.php') diff --git a/inc/actions.php b/inc/actions.php index 88596bbe8..4ea529dcd 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -6,6 +6,8 @@ * @author Andreas Gohr */ +use dokuwiki\Extension\Event; + /** * All action processing starts here */ @@ -14,7 +16,7 @@ function act_dispatch(){ $router = \dokuwiki\ActionRouter::getInstance(true); $headers = array('Content-Type: text/html; charset=utf-8'); - trigger_event('ACTION_HEADERS_SEND',$headers,'act_sendheaders'); + Event::createAndTrigger('ACTION_HEADERS_SEND',$headers,'act_sendheaders'); // clear internal variables unset($router); -- cgit v1.2.3