mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
bug 2772: remove "Home" from html title pages on index pages
git-svn-id: http://piwigo.org/svn/trunk@18637 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -561,9 +561,22 @@ if (isset($page['title']))
|
||||
{
|
||||
if (!empty($page['title']))
|
||||
{
|
||||
$page['title'] = $conf['level_separator'].$page['title'];
|
||||
$page['section_title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].$page['title'];
|
||||
}
|
||||
$page['title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$page['title'];
|
||||
else
|
||||
{
|
||||
if ('picture'==script_basename())
|
||||
{
|
||||
$used_title = l10n('Home');
|
||||
$used_link = duplicate_index_url(array('start'=>0));
|
||||
}
|
||||
else
|
||||
{
|
||||
$used_title = @$page['is_homepage'] ? $conf['gallery_title'] :l10n('Home');
|
||||
$used_link = get_gallery_home_url();
|
||||
}
|
||||
$page['section_title'] = $page['title'] = '<a href="'.$used_link.'">'.$used_title.'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
// add meta robots noindex, nofollow to avoid unnecesary robot crawls
|
||||
|
||||
Reference in New Issue
Block a user