aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_modules.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-11-19 21:00:48 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-11-19 21:00:48 +0000
commit6a082426840164a3c8187559dddf3ab777b958fa (patch)
treefd38a30c9f893e71cdb9c5cec3a972036ef53131 /phpBB/includes/acp/acp_modules.php
parentf78289033236a4c108aae5ad8315c60e5f7dc19b (diff)
downloadforums-6a082426840164a3c8187559dddf3ab777b958fa.tar
forums-6a082426840164a3c8187559dddf3ab777b958fa.tar.gz
forums-6a082426840164a3c8187559dddf3ab777b958fa.tar.bz2
forums-6a082426840164a3c8187559dddf3ab777b958fa.tar.xz
forums-6a082426840164a3c8187559dddf3ab777b958fa.zip
some tiny fixes.
git-svn-id: file:///svn/phpbb/trunk@6614 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_modules.php')
-rw-r--r--phpBB/includes/acp/acp_modules.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/includes/acp/acp_modules.php b/phpBB/includes/acp/acp_modules.php
index 1323c7aee4..7fcf1f7a29 100644
--- a/phpBB/includes/acp/acp_modules.php
+++ b/phpBB/includes/acp/acp_modules.php
@@ -580,14 +580,9 @@ class acp_modules
$right = $row['right_id'];
- /**
- * @todo think about using module class here
- */
if (!$ignore_acl && $row['module_auth'])
{
- $is_auth = false;
- 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)', 'true', '(int) $auth->acl_getf_global("\\1")', '(int) $config["\\1"]'), $row['module_auth']) . ');');
- if (!$is_auth)
+ if (!p_master::module_auth($row['module_auth']))
{
continue;
}