From 43a30afea65e4466b0c91fdb4ad78e84f6c4e2cf Mon Sep 17 00:00:00 2001 From: "laurent.duretz" Date: Sun, 18 Apr 2010 09:11:10 +0000 Subject: Issue 1521 : correction for admin pages git-svn-id: http://piwigo.org/svn/trunk@5917 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'include/functions_html.inc.php') diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 3cd429cea..6e97d0054 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -40,8 +40,10 @@ function get_cat_display_name($cat_informations, { global $conf; - $output = ''.l10n('Home').''; - + //$output = ''.l10n('Home').''; + $output = ''; + $is_first = true; + foreach ($cat_informations as $cat) { is_array($cat) or trigger_error( @@ -53,8 +55,12 @@ function get_cat_display_name($cat_informations, $cat['name'], 'get_cat_display_name' ); - - $output.= $conf['level_separator']; + + if (!$is_first) + { + $output.= $conf['level_separator']; + $is_first = false; + } if ( !isset($url) ) { -- cgit v1.2.3