aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-04-18 13:17:26 +0000
committerplegall <plg@piwigo.org>2013-04-18 13:17:26 +0000
commitf7c8687e7bc1a0b30496fe30212063f45a26d8eb (patch)
tree5a6d752d0a9011bccff5ae7607b9a556ad2b3516 /include/section_init.inc.php
parent97d610f7ed8db57379c00b6f54c2e2cdc1919d0a (diff)
bug 2891 fixed: pure root_url on Home link in breadcrumb
git-svn-id: http://piwigo.org/svn/branches/2.5@22282 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/section_init.inc.php')
-rw-r--r--include/section_init.inc.php17
1 files changed, 5 insertions, 12 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index 21ccb97bb..daab564cd 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -570,21 +570,14 @@ if (isset($page['chronology_field']))
// title update
if (isset($page['title']))
{
+ $page['section_title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>';
if (!empty($page['title']))
- {
- $page['section_title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].$page['title'];
- }
+ {
+ $page['section_title'] .= $conf['level_separator'].$page['title'];
+ }
else
{
- if ('picture'==script_basename())
- {
- $used_link = duplicate_index_url(array('start'=>0), array('flat'));
- }
- else
- {
- $used_link = get_gallery_home_url();
- }
- $page['section_title'] = $page['title'] = '<a href="'.$used_link.'">'.l10n('Home').'</a>';
+ $page['title'] = $page['section_title'];
}
}