aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-11-21 18:23:43 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-11-21 18:23:43 +0000
commit6cb0276788994f9bd348e8ef651851760055fc12 (patch)
tree571067d063000372566407a43472c8ec8480a0c7 /phpBB
parent3b42f4297e1ab3eff66f05409f8c74ad37d9f13d (diff)
downloadforums-6cb0276788994f9bd348e8ef651851760055fc12.tar
forums-6cb0276788994f9bd348e8ef651851760055fc12.tar.gz
forums-6cb0276788994f9bd348e8ef651851760055fc12.tar.bz2
forums-6cb0276788994f9bd348e8ef651851760055fc12.tar.xz
forums-6cb0276788994f9bd348e8ef651851760055fc12.zip
hmm, this was for debugging. :)
git-svn-id: file:///svn/phpbb/trunk@6630 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_module.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index cacc991c2a..753e043c16 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -263,10 +263,8 @@ class p_master
$forum_id = ($forum_id === false) ? $this->acl_forum_id : $forum_id;
- $test = preg_replace(array('#acl_([a-z_]+)(,\$id)?#', '#\$id#', '#aclf_([a-z_]+)#', '#cfg_([a-z_]+)#'), array('(int) $auth->acl_get(\'\\1\'\\2)', '(int) $forum_id', '(int) $auth->acl_getf_global(\'\\1\')', '(int) $config[\'\\1\']'), $module_auth);
-
$is_auth = false;
- eval('$is_auth = (int) (' . $test . ');');
+ eval('$is_auth = (int) (' . preg_replace(array('#acl_([a-z_]+)(,\$id)?#', '#\$id#', '#aclf_([a-z_]+)#', '#cfg_([a-z_]+)#'), array('(int) $auth->acl_get(\'\\1\'\\2)', '(int) $forum_id', '(int) $auth->acl_getf_global(\'\\1\')', '(int) $config[\'\\1\']'), $module_auth) . ');');
return $is_auth;
}