aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Action/Subscribe.php
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/Action/Subscribe.php
parente1d9dcc8b460b6f029ac9c8d5d3b8d23b6e73402 (diff)
downloaddokuwiki-cbb44eabe033d70affb048ec0daf4e579e09dd20.tar.gz
dokuwiki-cbb44eabe033d70affb048ec0daf4e579e09dd20.zip
deprecated trigger_event() in favor of a static method on Event
Diffstat (limited to 'inc/Action/Subscribe.php')
-rw-r--r--inc/Action/Subscribe.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/Action/Subscribe.php b/inc/Action/Subscribe.php
index c16571022..0e7054336 100644
--- a/inc/Action/Subscribe.php
+++ b/inc/Action/Subscribe.php
@@ -4,6 +4,7 @@ namespace dokuwiki\Action;
use dokuwiki\Action\Exception\ActionAbort;
use dokuwiki\Action\Exception\ActionDisabledException;
+use dokuwiki\Extension\Event;
/**
* Class Subscribe
@@ -67,7 +68,7 @@ class Subscribe extends AbstractUserAction {
if(empty($params['action']) || !checkSecurityToken()) return;
// Handle POST data, may throw exception.
- trigger_event('ACTION_HANDLE_SUBSCRIBE', $params, array($this, 'handlePostData'));
+ Event::createAndTrigger('ACTION_HANDLE_SUBSCRIBE', $params, array($this, 'handlePostData'));
$target = $params['target'];
$style = $params['style'];