aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 462bfe222..afdf41952 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -239,8 +239,8 @@ function get_cat_display_name($cat_informations,
{
global $conf;
- $output = '';
- $is_first = true;
+ $output = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('no_category').'</a>';
+
foreach ($cat_informations as $cat)
{
is_array($cat) or trigger_error(
@@ -253,14 +253,7 @@ function get_cat_display_name($cat_informations,
'get_cat_display_name'
);
- if ($is_first)
- {
- $is_first = false;
- }
- else
- {
- $output.= $conf['level_separator'];
- }
+ $output.= $conf['level_separator'];
if ( !isset($url) )
{
@@ -814,4 +807,4 @@ function register_default_menubar_blocks( $menu_ref_arr )
$menu->register_block( new RegisteredBlock( 'mbIdentification', 'identification', 'piwigo') );
}
-?> \ No newline at end of file
+?>