diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 1e45b2a..54b3879 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2673,6 +2673,14 @@ function template_preprocess_maintenance_page(&$variables) { $variables['classes_array'][] = 'one-sidebar sidebar-' . $variables['layout']; } + // Initializes attributes which are specific to the html and body elements. + $variables['html_attributes_array'] = array(); + $variables['body_attributes_array'] = array(); + + // HTML element attributes. + $variables['html_attributes_array']['lang'] = $GLOBALS['language']->language; + $variables['html_attributes_array']['dir'] = $GLOBALS['language']->direction ? 'rtl' : 'ltr'; + // Dead databases will show error messages so supplying this template will // allow themers to override the page and the content completely. if (isset($variables['db_is_active']) && !$variables['db_is_active']) { @@ -2687,6 +2695,10 @@ function template_preprocess_maintenance_page(&$variables) { * @see maintenance-page.tpl.php */ function template_process_maintenance_page(&$variables) { + // Flatten out html_attributes and body_attributes. + $variables['html_attributes'] = drupal_attributes($variables['html_attributes_array']); + $variables['body_attributes'] = drupal_attributes($variables['body_attributes_array']); + $variables['head'] = drupal_get_html_head(); $variables['css'] = drupal_add_css(); $variables['styles'] = drupal_get_css(); diff --git a/core/modules/system/maintenance-page.tpl.php b/core/modules/system/maintenance-page.tpl.php index 31de3bb..5e56740 100644 --- a/core/modules/system/maintenance-page.tpl.php +++ b/core/modules/system/maintenance-page.tpl.php @@ -10,84 +10,76 @@ * @see template_preprocess() * @see template_preprocess_maintenance_page() */ -?> - - - +?> +>