Commit ba6d6e97 authored by alexpott's avatar alexpott
Browse files

Issue #1974040 by Gábor Hojtsy: Fixed When installing in an RTL language, it...

Issue #1974040 by Gábor Hojtsy: Fixed When installing in an RTL language, it should be RTL from profile selection onwards.
parent 6644a8a6
......@@ -288,6 +288,14 @@ function install_begin_request(&$install_state) {
// This must go after drupal_bootstrap(), which unsets globals!
global $conf;
// If we have a language selected and it is not yet saved in the system
// (eg. pre-database data screens we are unable to persistently store
// the default language), we should set language_default so the proper
// language is used to display installer pages as early as possible.
if (!empty($install_state['parameters']['langcode']) && language_default()->langcode != $install_state['parameters']['langcode']) {
$GLOBALS['conf']['language_default'] = array('langcode' => $install_state['parameters']['langcode']);
require_once DRUPAL_ROOT . '/core/modules/system/system.install';
require_once DRUPAL_ROOT . '/core/includes/';
require_once DRUPAL_ROOT . '/core/includes/';
......@@ -3099,9 +3099,16 @@ function template_preprocess_maintenance_page(&$variables) {
* @see template_process_html()
function template_process_maintenance_page(&$variables) {
$variables['head'] = drupal_get_html_head();
$variables['css'] = drupal_add_css();
$variables['styles'] = drupal_get_css();
$variables['head'] = drupal_get_html_head();
// While this code is used in the installer, the language module may not be
// enabled yet (even maybe no database set up yet), but an RTL language
// selected should result in RTL stylesheets loaded properly already.
$variables['css'] = $css = drupal_add_css();
include_once DRUPAL_ROOT . '/core/modules/language/language.module';
$variables['styles'] = drupal_get_css($css);
$variables['scripts'] = drupal_get_js();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment