aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
authorlaurent.duretz <laurent.duretz@piwigo.org>2010-04-22 13:11:32 +0000
committerlaurent.duretz <laurent.duretz@piwigo.org>2010-04-22 13:11:32 +0000
commit4dccf2577668877844e193c92778215d0316fb4a (patch)
tree5db84608f83a940ceeb286a82357e0f61983878e /include/section_init.inc.php
parent3402ea7bf3347520f9bb8ba536328954ea9902b3 (diff)
Issue 1521 : report trunk on branch 2.0
git-svn-id: http://piwigo.org/svn/branches/2.0@5938 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/section_init.inc.php')
-rw-r--r--include/section_init.inc.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index 6264d0c28..d8713c09c 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -220,6 +220,8 @@ $forbidden = get_sql_condition_FandF(
// +-----------------------------------------------------------------------+
if ('categories' == $page['section'])
{
+ $page['title'] = '<a href="'.get_absolute_root_url().$conf['home_page'].'">'.l10n('home').'</a>';
+
if (isset($page['category']))
{
$page = array_merge(
@@ -232,14 +234,10 @@ if ('categories' == $page['section'])
'main_page_category_description'
),
'title' =>
- get_cat_display_name($page['category']['upper_names'], '', false),
+ $page['title'].$conf['level_separator'].get_cat_display_name($page['category']['upper_names'], '', false),
)
);
}
- else
- {
- $page['title'] = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('no_category').'</a>';
- }
if
(