diff options
author | laurent.duretz <laurent.duretz@piwigo.org> | 2010-03-29 08:02:44 +0000 |
---|---|---|
committer | laurent.duretz <laurent.duretz@piwigo.org> | 2010-03-29 08:02:44 +0000 |
commit | 72bdf727ee5c1b64e902b98fe42fe91a44febd5a (patch) | |
tree | 71490901cd9dff8b4561ac71242015fe5ae3712b /include/functions_html.inc.php | |
parent | 36a4b9aff5c3c4e9418b1f9286497056cd7196f3 (diff) |
Issue 1521 : Integration of LinkRoot plugin in Piwigo core
git-svn-id: http://piwigo.org/svn/trunk@5441 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_html.inc.php | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 8f1753d07..440d028c7 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -40,8 +40,8 @@ function get_cat_display_name($cat_informations, { global $conf; - $output = ''; - $is_first = true; + $output = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('Home').'</a>'; + foreach ($cat_informations as $cat) { is_array($cat) or trigger_error( @@ -54,14 +54,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) ) { @@ -517,4 +510,4 @@ function register_default_menubar_blocks( $menu_ref_arr ) $menu->register_block( new RegisteredBlock( 'mbIdentification', 'Identification', 'piwigo') ); } -?>
\ No newline at end of file +?> |