aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2010-05-28 19:58:51 +0000
committerrvelices <rv-github@modusoptimus.com>2010-05-28 19:58:51 +0000
commit722c4a3a9740506ed4f409fcd9517027f8cbcee5 (patch)
treef2df91637c418d6aacf07a4059fbe0a8923167cf /include/section_init.inc.php
parentef50e468d4f7115e6e9ee7b54165230c8831109f (diff)
merge r6368,6410 from branch-2.1 to trunk
- merged the linkroot integration with the existing gallery_url (unique $conf['gallery_url'] used for RSS, mail homepage root in the browse path) - added an option $conf['debug_mail'] - if set all outgoing mails are saved into local_data_dir git-svn-id: http://piwigo.org/svn/trunk@6411 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/section_init.inc.php21
1 files changed, 15 insertions, 6 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index d4d8725dd..339c0ef5d 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -219,8 +219,6 @@ $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,11 +230,12 @@ if ('categories' == $page['section'])
$page['category']['comment'],
'main_page_category_description'
),
- 'title' =>
- $page['title'].$conf['level_separator'].get_cat_display_name($page['category']['upper_names'], '', false),
+ 'title' => get_cat_display_name($page['category']['upper_names'], '', false),
)
);
}
+ else
+ $page['title'] = ''; // will be set later
if
(
@@ -373,8 +372,8 @@ SELECT DISTINCT image_id'.get_extra_fields($conf['order_by']).'
$page = array_merge(
$page,
array(
- 'title' => l10n('Favorites')
- )
+ 'title' => l10n('Favorites')
+ )
);
if (!empty($_GET['action']) && ($_GET['action'] == 'remove_all_from_favorites'))
@@ -558,6 +557,16 @@ if (isset($page['chronology_field']))
initialize_calendar();
}
+// title update
+if (isset($page['title']))
+{
+ if (!empty($page['title']))
+ {
+ $page['title'] = $conf['level_separator'].$page['title'];
+ }
+ $page['title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$page['title'];
+}
+
// add meta robots noindex, nofollow to avoid unnecesary robot crawls
$page['meta_robots']=array();
if ( isset($page['chronology_field'])