Skip to content

Commit 5552a20

Browse files
committed
Replaced references to '$ACT' with '$event->data'.
1 parent 1a02c9e commit 5552a20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

action/hide.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ function hide(Doku_Event &$event, $param) {
3232
return;
3333
}
3434

35-
global $ACT;
36-
if (!in_array($ACT, array('show', 'edit', 'source', 'diff'))) {
35+
if (!in_array($event->data, array('show', 'edit', 'source', 'diff'))) {
3736
return;
3837
}
3938

40-
$ACT = 'denied';
39+
$event->data = 'denied';
4140

4241
$event->preventDefault();
4342
$event->stopPropagation();

0 commit comments

Comments
 (0)