summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-15 15:52:27 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-15 15:52:27 +0000
commit8f7b37b730116ff9f619178f966624c2606850d5 (patch)
tree1851bd28647ff3eb05ea7c29e8a5036cca5650d3 /includes/theme.inc
parent0161d941a3645d51ebfbef2f0e4fa15afaed8320 (diff)
downloadbrdo-8f7b37b730116ff9f619178f966624c2606850d5.tar.gz
brdo-8f7b37b730116ff9f619178f966624c2606850d5.tar.bz2
- Patch #325169 by mundanity, Arancaytar, Crell, chx, picco, alexw: move error/exception handler higher up in the bootstrap process.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 7668ab9e4..d8bec3403 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -2543,6 +2543,10 @@ function template_preprocess_maintenance_page(&$variables) {
$head_title[] = variable_get('site_slogan', '');
}
}
+
+ // set the default language if necessary
+ $language = isset($GLOBALS['language']) ? $GLOBALS['language'] : language_default();
+
$variables['head_title'] = implode(' | ', $head_title);
$variables['base_path'] = base_path();
$variables['front_page'] = url();
@@ -2550,8 +2554,8 @@ function template_preprocess_maintenance_page(&$variables) {
$variables['feed_icons'] = '';
$variables['head'] = drupal_get_html_head();
$variables['help'] = '';
- $variables['language'] = $GLOBALS['language'];
- $variables['language']->dir = $GLOBALS['language']->direction ? 'rtl' : 'ltr';
+ $variables['language'] = $language;
+ $variables['language']->dir = $language->direction ? 'rtl' : 'ltr';
$variables['logo'] = theme_get_setting('logo');
$variables['messages'] = $variables['show_messages'] ? theme('status_messages') : '';
$variables['main_menu'] = array();