From daf0cdba5471dedf716e23fd4ab172391b6eb069 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(-) (limited to 'inc') diff --git a/inc/actions.php b/inc/actions.php index 2137d6b50..d4bd5b20e 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -187,10 +187,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); @@ -215,6 +211,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