From 5ca6b4c919db9328947bb2424a28ae1e73c87f04 Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 30 Nov 2012 20:59:02 +0000 Subject: bug 2772: remove "Home" from html title pages on index pages - partial revert change of breadcrumb title on home page git-svn-id: http://piwigo.org/svn/trunk@19233 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/section_init.inc.php | 4 +--- themes/default/template/header.tpl | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 5533c969b..eb43cbb49 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -567,15 +567,13 @@ if (isset($page['title'])) { if ('picture'==script_basename()) { - $used_title = l10n('Home'); $used_link = duplicate_index_url(array('start'=>0)); } else { - $used_title = ('categories'==$page['section'] && !isset($page['category']) && !isset($page['chronology_field']) ) ? $conf['gallery_title'] : l10n('Home'); $used_link = get_gallery_home_url(); } - $page['section_title'] = $page['title'] = ''.$used_title.''; + $page['section_title'] = $page['title'] = ''.l10n('Home').''; } } diff --git a/themes/default/template/header.tpl b/themes/default/template/header.tpl index 645a3bfe2..3debe3872 100644 --- a/themes/default/template/header.tpl +++ b/themes/default/template/header.tpl @@ -16,7 +16,7 @@ {/if} {/if} -{$PAGE_TITLE}{if $PAGE_TITLE!=$GALLERY_TITLE} | {$GALLERY_TITLE}{/if} +{if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE} -- cgit v1.2.3