summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php7
1 files changed, 3 insertions, 4 deletions
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 <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);
@@ -215,6 +211,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