Correct hooks.

This commit is contained in:
Dominik Pantůček 2023-06-19 21:52:33 +02:00
parent bd2aeb0dc5
commit 50178a2146

View file

@ -11,7 +11,7 @@ class action_plugin_brmburo extends DokuWiki_Action_Plugin
/** @inheritDoc */ /** @inheritDoc */
public function register(Doku_Event_Handler $controller) public function register(Doku_Event_Handler $controller)
{ {
$controller->register_hook('ACTION_ACT_PREPROCESS', 'AFTER|BEFORE', $this, 'handleActionActPreprocess'); $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'handleActionActPreprocess');
} }
@ -27,8 +27,8 @@ class action_plugin_brmburo extends DokuWiki_Action_Plugin
public function handleActionActPreprocess(Doku_Event $event, $param) { public function handleActionActPreprocess(Doku_Event $event, $param) {
$act = act_clean($event->data); $act = act_clean($event->data);
if ($act === 'payments') { if ($act === 'payments') {
$event->preventDefault(); echo "test";
echo "TEST"; die();
} }
} }