summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMartin Doucha <next_ghost@quick.cz>2012-06-18 21:30:11 +0200
committerMartin Doucha <next_ghost@quick.cz>2012-06-18 21:30:11 +0200
commit3fb0e07d018fc6c8d173bd4a8a58c77ba00290fb (patch)
tree94244991f75649069ed796021fc295b76202a86e /inc
parentb83823e5b0c95ae2365cfc20eb33094c6ab108f2 (diff)
downloadrpg-3fb0e07d018fc6c8d173bd4a8a58c77ba00290fb.tar.gz
rpg-3fb0e07d018fc6c8d173bd4a8a58c77ba00290fb.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 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