summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-25 12:43:18 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-25 12:43:18 +0000
commitf1023e6492e3896c422e29fdd7265d3045660821 (patch)
tree2ad91c3d22f988a0dd9d07f8bc6b82fb96682723
parent8929612d29f84eedb29e1f7c11aaa80155499244 (diff)
downloadbrdo-f1023e6492e3896c422e29fdd7265d3045660821.tar.gz
brdo-f1023e6492e3896c422e29fdd7265d3045660821.tar.bz2
#177421 by malex, Desbeers and chx: proper value of mission statement variable for themes
-rw-r--r--includes/theme.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 336b121da..04621ca72 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('<link rel="shortcut icon" href="'. check_url(theme_get_setting('favicon')) .'" type="image/x-icon" />');
@@ -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'));