aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_module.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-12-10 23:20:21 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-12-10 23:20:21 +0000
commitb41525229be3e754f288e48e184626e53b211171 (patch)
treed82bc8a84467b59c584571a2d0db3c903d578a5e /phpBB/includes/functions_module.php
parent85fdeda51cfcfb4b75923bbb339c02533e4b5a54 (diff)
downloadforums-b41525229be3e754f288e48e184626e53b211171.tar
forums-b41525229be3e754f288e48e184626e53b211171.tar.gz
forums-b41525229be3e754f288e48e184626e53b211171.tar.bz2
forums-b41525229be3e754f288e48e184626e53b211171.tar.xz
forums-b41525229be3e754f288e48e184626e53b211171.zip
- custom profile fields
- prune users - prune forums git-svn-id: file:///svn/phpbb/trunk@5325 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_module.php')
-rw-r--r--phpBB/includes/functions_module.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index 5c5f7e30e2..ae7e2d47f7 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -145,7 +145,9 @@ class p_master
$right = $row['right_id'];
- $url_func = $row['module_name'] . '_' . $row['module_mode'] . '_url';
+ // We need to prefix the functions to not create a naming conflict
+ $url_func = '_module_' . $row['module_name'] . '_' . $row['module_mode'] . '_url';
+ $lang_func = '_module_' . $row['module_name'];
$this->module_ary[$i] = array(
'depth' => $depth,
@@ -160,7 +162,7 @@ class p_master
'url_extra' => (function_exists($url_func)) ? $url_func() : '',
- 'lang' => (function_exists($row['module_name'])) ? $row['module_name']($row['module_mode'], $row['module_langname']) : ((!empty($user->lang[$row['module_langname']])) ? $user->lang[$row['module_langname']] : $row['module_langname']),
+ 'lang' => ($row['module_name'] && function_exists($lang_func)) ? $lang_func($row['module_mode'], $row['module_langname']) : ((!empty($user->lang[$row['module_langname']])) ? $user->lang[$row['module_langname']] : $row['module_langname']),
'langname' => $row['module_langname'],
'left' => $row['left_id'],