Commit 21387e4f authored by Jonny Bradley's avatar Jonny Bradley

[FIX] categories: No need to append deep=off on category URLs in the module as...

[FIX] categories: No need to append deep=off on category URLs in the module as that the default for tiki-browse_categories
parent 0e675212
......@@ -73,10 +73,12 @@ function module_categories($mod_reference, &$module_params)
$deep = $module_params['deep'];
else
$deep= 'on';
if (empty($urlEnd)) {
$urlEnd .= '&';
if ($deep === 'on') {
if (empty($urlEnd)) {
$urlEnd .= '&';
}
$urlEnd .= "deep=$deep";
}
$urlEnd .= "deep=$deep";
$name = "";
......@@ -116,7 +118,7 @@ function module_categories($mod_reference, &$module_params)
if (isset($module_params['selflink']) && $module_params['selflink'] == 'y') {
$url = filter_out_sefurl('tiki-index.php?page=' . urlencode($cat['name']));
} else {
$url = filter_out_sefurl('tiki-browse_categories.php?parentId=' . $cat['categId'], 'category', $cat['name'], true) .$urlEnd;
$url = filter_out_sefurl('tiki-browse_categories.php?parentId=' . $cat['categId'], 'category', $cat['name'], !empty($urlEnd)) .$urlEnd;
}
$tree_nodes[] = array(
"id" => $cat["categId"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment