aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorlaurent.duretz <laurent.duretz@piwigo.org>2010-04-22 13:11:32 +0000
committerlaurent.duretz <laurent.duretz@piwigo.org>2010-04-22 13:11:32 +0000
commit4dccf2577668877844e193c92778215d0316fb4a (patch)
tree5db84608f83a940ceeb286a82357e0f61983878e /include/functions_html.inc.php
parent3402ea7bf3347520f9bb8ba536328954ea9902b3 (diff)
Issue 1521 : report trunk on branch 2.0
git-svn-id: http://piwigo.org/svn/branches/2.0@5938 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index afdf41952..8ea174076 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -239,7 +239,8 @@ function get_cat_display_name($cat_informations,
{
global $conf;
- $output = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('no_category').'</a>';
+ $output = '';
+ $is_first = true;
foreach ($cat_informations as $cat)
{
@@ -253,7 +254,14 @@ function get_cat_display_name($cat_informations,
'get_cat_display_name'
);
- $output.= $conf['level_separator'];
+ if ($is_first)
+ {
+ $is_first=false;
+ }
+ else
+ {
+ $output.= $conf['level_separator'];
+ }
if ( !isset($url) )
{