diff --git a/core/includes/common.inc b/core/includes/common.inc index 4c86953..2f91295 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -247,7 +247,7 @@ function drupal_get_profile() { $profile = $install_state['parameters']['profile']; } else { - $profile = variable_get('install_profile', 'standard'); + $profile = config('system.site')->get('install_profile'); } return $profile; diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 3968682..10b3fe6 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -1681,7 +1681,7 @@ function install_import_translations_remaining(&$install_state) { function install_finished(&$install_state) { $profile = drupal_get_profile(); // Remember the profile which was used. - variable_set('install_profile', $profile); + config('system.site')->set('install_profile', $profile)->save(); // Installation profiles are always loaded last. module_set_weight($profile, 1000); diff --git a/core/modules/system/config/system.site.yml b/core/modules/system/config/system.site.yml index 010dedf..fc79514 100644 --- a/core/modules/system/config/system.site.yml +++ b/core/modules/system/config/system.site.yml @@ -5,3 +5,4 @@ page: 403: '' 404: '' front: user +install_profile: standard diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 1f191ac..56da0c6 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -2203,6 +2203,17 @@ function system_update_8032() { } /** + * Moves install_profile from variable to config. + * + * @ingroup config_upgrade + */ +function system_update_8033() { + update_variables_to_config('system.site', array( + 'install_profile' => 'install_profile' + )); +} + +/** * @} End of "defgroup updates-7.x-to-8.x". * The next series of updates should start at 9000. */