From 3fb0e07d018fc6c8d173bd4a8a58c77ba00290fb Mon Sep 17 00:00:00 2001 From: Martin Doucha Date: Mon, 18 Jun 2012 21:30:11 +0200 Subject: Fix act_validate() --- inc/actions.php | 7 +++---- 1 file 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 */ 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 */ function act_validate($act) { + global $conf; + global $INFO; + $act = act_clean($act); // check if action is disabled -- cgit v1.2.3