diff options
author | Martin Doucha <next_ghost@quick.cz> | 2012-06-18 21:30:11 +0200 |
---|---|---|
committer | Martin Doucha <next_ghost@quick.cz> | 2012-06-18 21:30:11 +0200 |
commit | 3fb0e07d018fc6c8d173bd4a8a58c77ba00290fb (patch) | |
tree | 94244991f75649069ed796021fc295b76202a86e | |
parent | b83823e5b0c95ae2365cfc20eb33094c6ab108f2 (diff) | |
download | rpg-3fb0e07d018fc6c8d173bd4a8a58c77ba00290fb.tar.gz rpg-3fb0e07d018fc6c8d173bd4a8a58c77ba00290fb.tar.bz2 |
Fix act_validate()
-rw-r--r-- | inc/actions.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/inc/actions.php b/inc/actions.php index eb2178ac1..4376af5f9 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -186,10 +186,6 @@ function act_sendheaders($headers) { * @author Andreas Gohr <andi@splitbrain.org> */ function act_clean($act){ - global $lang; - global $conf; - global $INFO; - // check if the action was given as array key if(is_array($act)){ list($act) = array_keys($act); @@ -214,6 +210,9 @@ function act_clean($act){ * @author Andreas Gohr <andi@splitbrain.org> */ function act_validate($act) { + global $conf; + global $INFO; + $act = act_clean($act); // check if action is disabled |