diff --git a/includes/theme.inc b/includes/theme.inc index 336b121da081f694a1d01011218daac75a3d1b9d..04621ca723c9495c1d40ec6b8504257b8f05127c 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'));