From d283bd51289b852eaa96c4ff94bc1cd92e8bd6c8 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 16 Oct 2012 19:56:13 +0000 Subject: bug 2772: remove "Home" from html title pages on index pages (better title when viewing in flat mode) git-svn-id: http://piwigo.org/svn/trunk@18666 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/section_init.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/section_init.inc.php') diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 4a55cf732..5533c969b 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -572,7 +572,7 @@ if (isset($page['title'])) } else { - $used_title = @$page['is_homepage'] ? $conf['gallery_title'] :l10n('Home'); + $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.''; -- cgit v1.2.3