Index: /trunk/include/functions_html.inc.php
===================================================================
--- /trunk/include/functions_html.inc.php (revision 9366)
+++ /trunk/include/functions_html.inc.php (revision 9367)
@@ -112,5 +112,7 @@
function get_cat_display_name_cache($uppercats,
$url = '',
- $replace_space = true)
+ $replace_space = true,
+ $single_link = false,
+ $link_class = null)
{
global $cache, $conf;
@@ -126,4 +128,14 @@
$output = '';
+ if ($single_link)
+ {
+ $single_url = get_root_url().$url.array_pop(explode(',', $uppercats));
+ $output.= '';
+ }
$is_first = true;
foreach (explode(',', $uppercats) as $category_id)
@@ -146,5 +158,5 @@
}
- if ( !isset($url) )
+ if ( !isset($url) or $single_link )
{
$output.= $cat['name'];
@@ -167,4 +179,10 @@
}
}
+
+ if ($single_link and isset($single_url))
+ {
+ $output.= '';
+ }
+
if ($replace_space)
{