aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_module.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-09-22 21:58:20 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-09-25 20:32:15 +0200
commitfccd7f0ab5ab559dc89be6af9e582a986af8bb13 (patch)
tree65b2c96dc13203a75f104d3ee2b79b0756bc4631 /phpBB/includes/functions_module.php
parent15883dfac22c8a5660c0400c565ba980eaf6f618 (diff)
downloadforums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar
forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar.gz
forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar.bz2
forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar.xz
forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.zip
[feature/request-class] Convert any direct access to $_* to use $request
PHPBB3-9716
Diffstat (limited to 'phpBB/includes/functions_module.php')
-rw-r--r--phpBB/includes/functions_module.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index d0e7c8cfc8..194cba7291 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -314,6 +314,7 @@ class p_master
function module_auth($module_auth, $forum_id = false)
{
global $auth, $config;
+ global $request;
$module_auth = trim($module_auth);
@@ -361,7 +362,7 @@ class p_master
$forum_id = ($forum_id === false) ? $this->acl_forum_id : $forum_id;
$is_auth = false;
- eval('$is_auth = (int) (' . preg_replace(array('#acl_([a-z0-9_]+)(,\$id)?#', '#\$id#', '#aclf_([a-z0-9_]+)#', '#cfg_([a-z0-9_]+)#', '#request_([a-zA-Z0-9_]+)#'), array('(int) $auth->acl_get(\'\\1\'\\2)', '(int) $forum_id', '(int) $auth->acl_getf_global(\'\\1\')', '(int) $config[\'\\1\']', '!empty($_REQUEST[\'\\1\'])'), $module_auth) . ');');
+ eval('$is_auth = (int) (' . preg_replace(array('#acl_([a-z0-9_]+)(,\$id)?#', '#\$id#', '#aclf_([a-z0-9_]+)#', '#cfg_([a-z0-9_]+)#', '#request_([a-zA-Z0-9_]+)#'), array('(int) $auth->acl_get(\'\\1\'\\2)', '(int) $forum_id', '(int) $auth->acl_getf_global(\'\\1\')', '(int) $config[\'\\1\']', '$request->variable(\'\\1\', false)'), $module_auth) . ');');
return $is_auth;
}