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
This commit is contained in:
plegall
2013-04-18 13:17:26 +00:00
parent 97d610f7ed
commit f7c8687e7b
+5 -12
View File
@@ -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'];
}
}