summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjosebc2017-11-09 16:33:51 +0100
committerHerman van Rink2017-11-09 16:33:51 +0100
commit3580bfe6888912c3b3b9e8d2468f60b7314f4921 (patch)
treedb14376824c3941ca13c5cd14103df310f5daf51
parenta31aae5a2de77e77abc4da5e7f0651391f986e81 (diff)
Issue #2884608 by helmo, josebc, MartijnBraam: Site language not set when provisioning a drupal 8 site
-rw-r--r--platform/drupal/install_8.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/drupal/install_8.inc b/platform/drupal/install_8.inc
index a7db34f..87f96e2 100644
--- a/platform/drupal/install_8.inc
+++ b/platform/drupal/install_8.inc
@@ -117,7 +117,7 @@ function install_main() {
$settings = array(
'parameters' => array(
'profile' => $profile,
- 'locale' => $install_locale,
+ 'langcode' => $install_locale,
),
'settings_verified' => TRUE,
'forms' => array(
@@ -142,7 +142,8 @@ function install_main() {
),
);
try {
- install_drupal($settings);
+ $class_loader = drush_drupal_load_autoloader(DRUPAL_ROOT);
+ install_drupal($class_loader, $settings);
}
catch (Exception $e) {
drush_set_error('DRUPAL_INSTALL_FAILED');