From b41525229be3e754f288e48e184626e53b211171 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 10 Dec 2005 23:20:21 +0000 Subject: - custom profile fields - prune users - prune forums git-svn-id: file:///svn/phpbb/trunk@5325 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_module.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/functions_module.php') 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'], -- cgit v1.2.1