Commit 1ec51849 authored by clemens.tolboom's avatar clemens.tolboom Committed by omega8cc

Issue #2409085 by clemens.tolboom: Use mutatable interface in install_8.inc

parent f4663fc6
......@@ -25,7 +25,7 @@ if ($url_changed) {
_provision_platform_drupal_deploy_8_replace('default', $new_url);
// Update files paths
\Drupal::config('system.file')
\Drupal::configFactory()->getEditable('system.file')
->set('path.private', "sites/$new_url/private/files")
->set('path.temporary', "sites/$new_url/private/temp")
->save();
......@@ -33,7 +33,9 @@ if ($url_changed) {
// Detect and update default site name, if needed
$old_name = \Drupal::config('system.site')->get('name');
if ($old_name == $old_url) {
\Drupal::config('system.site')->set('name', "$new_url")->save();
\Drupal::configFactory()->getEditable('system.site')
->set('name', "$new_url")
->save();
}
}
......
......@@ -151,7 +151,7 @@ function install_main() {
_provision_drupal_create_directories();
// Set files paths
\Drupal::config('system.file')
\Drupal::configFactory()->getEditable('system.file')
->set('path.private', "sites/$url/private/files")
->set('path.temporary', "sites/$url/private/temp")
->save();
......
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