Correct hooks.
This commit is contained in:
parent
bd2aeb0dc5
commit
50178a2146
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue