mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-02 14:19:59 +03:00
merge r22282 from branch 2.5 to trunk
bug 2891 fixed: pure root_url on Home link in breadcrumb git-svn-id: http://piwigo.org/svn/trunk@22283 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
08ca141ecc
commit
f81a7de103
1 changed files with 5 additions and 12 deletions
|
@ -570,21 +570,14 @@ if (isset($page['chronology_field']))
|
||||||
// title update
|
// title update
|
||||||
if (isset($page['title']))
|
if (isset($page['title']))
|
||||||
{
|
{
|
||||||
|
$page['section_title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>';
|
||||||
if (!empty($page['title']))
|
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
|
else
|
||||||
{
|
{
|
||||||
if ('picture'==script_basename())
|
$page['title'] = $page['section_title'];
|
||||||
{
|
|
||||||
$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>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue