aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-11-30 20:59:02 +0000
committerrvelices <rv-github@modusoptimus.com>2012-11-30 20:59:02 +0000
commit5ca6b4c919db9328947bb2424a28ae1e73c87f04 (patch)
treeab19c23272b049f2e2390243c80a44aea41454de
parent06e54482cc41a9121641dff848383cbffb2f90e2 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/section_init.inc.php4
-rw-r--r--themes/default/template/header.tpl2
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'] = '<a href="'.$used_link.'">'.$used_title.'</a>';
+ $page['section_title'] = $page['title'] = '<a href="'.$used_link.'">'.l10n('Home').'</a>';
}
}
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 @@
<meta name="description" content="{$PAGE_TITLE}{if isset($INFO_FILE)} - {$INFO_FILE}{/if}">
{/if}
{/if}
-<title>{$PAGE_TITLE}{if $PAGE_TITLE!=$GALLERY_TITLE} | {$GALLERY_TITLE}{/if}</title>
+<title>{if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE}</title>
<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
<link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" >