From f1023e6492e3896c422e29fdd7265d3045660821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 25 Sep 2007 12:43:18 +0000 Subject: [PATCH] #177421 by malex, Desbeers and chx: proper value of mission statement variable for themes --- includes/theme.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/theme.inc b/includes/theme.inc index 336b121da08..04621ca723c 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1658,11 +1658,6 @@ function template_preprocess(&$variables, $hook) { * @see page.tpl.php */ function template_preprocess_page(&$variables) { - /* Set title and breadcrumb to declared values */ - if (drupal_is_front_page()) { - $variables['mission'] = filter_xss_admin(theme_get_setting('mission')); - } - /* Add favicon */ if (theme_get_setting('toggle_favicon')) { drupal_set_html_head(''); @@ -1693,6 +1688,11 @@ function template_preprocess_page(&$variables) { $variables['layout'] = ($variables['layout'] == 'left') ? 'both' : 'right'; } + // Set mission when viewing the frontpage. + if (drupal_is_front_page()) { + $mission = filter_xss_admin(theme_get_setting('mission')); + } + // Construct page title if (drupal_get_title()) { $head_title = array(strip_tags(drupal_get_title()), variable_get('site_name', 'Drupal'));