From 50178a21460f9969a2ebf43934775bd1f84477d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Mon, 19 Jun 2023 21:52:33 +0200 Subject: [PATCH] Correct hooks. --- dokuwiki/action.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dokuwiki/action.php b/dokuwiki/action.php index 36d7e20..d464030 100644 --- a/dokuwiki/action.php +++ b/dokuwiki/action.php @@ -11,7 +11,7 @@ class action_plugin_brmburo extends DokuWiki_Action_Plugin /** @inheritDoc */ 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) { $act = act_clean($event->data); if ($act === 'payments') { - $event->preventDefault(); - echo "TEST"; + echo "test"; + die(); } }