summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMartin Doucha <next_ghost@quick.cz>2012-06-18 21:30:11 +0200
committerAndreas Gohr <andi@splitbrain.org>2012-07-06 11:50:22 +0200
commitdaf0cdba5471dedf716e23fd4ab172391b6eb069 (patch)
treefe41a6cae440220d0a86a1040513a0439ad66888 /inc
parent62baad0f61a13ec01791a8cdc8a7dbbd78f6a567 (diff)
downloadrpg-daf0cdba5471dedf716e23fd4ab172391b6eb069.tar.gz
rpg-daf0cdba5471dedf716e23fd4ab172391b6eb069.tar.bz2
Fix act_validate()
Diffstat (limited to 'inc')
-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