From 7f75c131ed12fe830a13cc77ae677aa0d68740a4 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 13 Oct 2012 15:55:35 +0000 Subject: 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 --- include/section_init.inc.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'include/section_init.inc.php') diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 138b16cec..4a55cf732 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -561,9 +561,22 @@ if (isset($page['title'])) { if (!empty($page['title'])) { - $page['title'] = $conf['level_separator'].$page['title']; + $page['section_title'] = ''.l10n('Home').''.$conf['level_separator'].$page['title']; } - $page['title'] = ''.l10n('Home').''.$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'] = ''.$used_title.''; + } } // add meta robots noindex, nofollow to avoid unnecesary robot crawls -- cgit v1.2.3