Skip to content

Commit 3491083

Browse files
authored
Merge pull request #111 from LarsGit223/master
Replaced references to '$ACT' with '$event->data'.
2 parents d375e57 + 5552a20 commit 3491083

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)