Changeset 19233


Ignore:
Timestamp:
Nov 30, 2012, 9:59:02 PM (11 years ago)
Author:
rvelices
Message:

bug 2772: remove "Home" from html title pages on index pages - partial revert change of breadcrumb title on home page

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/section_init.inc.php

    r18666 r19233  
    568568    if ('picture'==script_basename())
    569569    {
    570       $used_title = l10n('Home');
    571570      $used_link = duplicate_index_url(array('start'=>0));
    572571    }
    573572    else
    574573    {
    575       $used_title = ('categories'==$page['section'] && !isset($page['category']) && !isset($page['chronology_field']) ) ? $conf['gallery_title'] : l10n('Home');
    576574      $used_link = get_gallery_home_url();
    577575    }
    578     $page['section_title'] = $page['title'] = '<a href="'.$used_link.'">'.$used_title.'</a>';
     576    $page['section_title'] = $page['title'] = '<a href="'.$used_link.'">'.l10n('Home').'</a>';
    579577  }
    580578}
  • trunk/themes/default/template/header.tpl

    r18756 r19233  
    1717{/if}
    1818{/if}
    19 <title>{$PAGE_TITLE}{if $PAGE_TITLE!=$GALLERY_TITLE} | {$GALLERY_TITLE}{/if}</title>
     19<title>{if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE}</title>
    2020<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">
    2121
Note: See TracChangeset for help on using the changeset viewer.