aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_module.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-12-21 10:37:50 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-12-21 10:37:50 +0000
commit515085a2a2d4b06989566a60b8add3fa4864f1e3 (patch)
tree9000d688dc33511560a9d08191b87d1340f70af3 /phpBB/includes/functions_module.php
parent2e1eef2713f7891ce9d78736ceae6d2faf93fc4b (diff)
downloadforums-515085a2a2d4b06989566a60b8add3fa4864f1e3.tar
forums-515085a2a2d4b06989566a60b8add3fa4864f1e3.tar.gz
forums-515085a2a2d4b06989566a60b8add3fa4864f1e3.tar.bz2
forums-515085a2a2d4b06989566a60b8add3fa4864f1e3.tar.xz
forums-515085a2a2d4b06989566a60b8add3fa4864f1e3.zip
- some fixes
- important bugfix for the mcp and determining allowed ids in general (if global announcements are included) git-svn-id: file:///svn/phpbb/trunk@6787 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_module.php')
-rw-r--r--phpBB/includes/functions_module.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index 753e043c16..22312b8d76 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -166,7 +166,7 @@ class p_master
$depth = sizeof($this->module_cache['parents'][$row['module_id']]);
// We need to prefix the functions to not create a naming conflict
-
+
// Function for building 'url_extra'
$url_func = '_module_' . $row['module_basename'] . '_url';
@@ -191,7 +191,7 @@ class p_master
'mode' => (string) $row['module_mode'],
'display' => (int) $row['module_display'],
- 'url_extra' => (function_exists($url_func)) ? $url_func($row['module_mode']) : '',
+ 'url_extra' => (function_exists($url_func)) ? $url_func($row['module_mode'], $row) : '',
'lang' => ($row['module_basename'] && 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'],
@@ -578,7 +578,9 @@ class p_master
}
$u_title = $module_url . $delim . 'i=' . (($item_ary['cat']) ? $item_ary['id'] : $item_ary['name'] . (($item_ary['is_duplicate']) ? '&amp;icat=' . $current_id : '') . '&amp;mode=' . $item_ary['mode']);
- $u_title .= (!$item_ary['cat'] && isset($item_ary['url_extra'])) ? $item_ary['url_extra'] : '';
+
+ // Was not allowed in categories before - /*!$item_ary['cat'] && */
+ $u_title .= (isset($item_ary['url_extra'])) ? $item_ary['url_extra'] : '';
// Only output a categories items if it's currently selected
if (!$depth || ($depth && (in_array($item_ary['parent'], array_values($this->module_cache['parents'])) || $item_ary['parent'] == $this->p_parent)))