Skip to content

Commit

Permalink
bug 2772: remove "Home" from html title pages on index pages - partia…
Browse files Browse the repository at this point in the history
…l revert change of breadcrumb title on home page

git-svn-id: http://piwigo.org/svn/trunk@19233 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rvelices committed Nov 30, 2012
1 parent 06e5448 commit 5ca6b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions include/section_init.inc.php
Expand Up @@ -567,15 +567,13 @@
{
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>';
}
}

Expand Down
2 changes: 1 addition & 1 deletion themes/default/template/header.tpl
Expand Up @@ -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}" >
Expand Down

0 comments on commit 5ca6b4c

Please sign in to comment.