diff options
Diffstat (limited to 'include/section_init.inc.php')
-rw-r--r-- | include/section_init.inc.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 138b16cec..4a55cf732 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -561,9 +561,22 @@ if (isset($page['title'])) { if (!empty($page['title'])) { - $page['title'] = $conf['level_separator'].$page['title']; + $page['section_title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].$page['title']; } - $page['title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$page['title']; + else + { + if ('picture'==script_basename()) + { + $used_title = l10n('Home'); + $used_link = duplicate_index_url(array('start'=>0)); + } + else + { + $used_title = @$page['is_homepage'] ? $conf['gallery_title'] :l10n('Home'); + $used_link = get_gallery_home_url(); + } + $page['section_title'] = $page['title'] = '<a href="'.$used_link.'">'.$used_title.'</a>'; + } } // add meta robots noindex, nofollow to avoid unnecesary robot crawls |