diff --git a/core/includes/install.inc b/core/includes/install.inc index 6a4070c..85ef6ad 100644 --- a/core/includes/install.inc +++ b/core/includes/install.inc @@ -334,7 +334,7 @@ function drupal_rewrite_settings($settings = array(), $settings_file = NULL) { } // Write the new settings file. - if (@file_put_contents($settings_file, $buffer) === FALSE) { + if (file_put_contents($settings_file, $buffer) === FALSE) { throw new Exception(t('Failed to modify %settings. Verify the file permissions.', array('%settings' => $settings_file))); } else { @@ -621,8 +621,8 @@ function drupal_install_system($install_state) { // Install base system configuration. \Drupal::service('config.installer')->installDefaultConfig('core', 'core'); - // Ensure to also store the installation profile in configuration for later - // use. + // Store the installation profile in configuration to populate the + // 'install_profile' container parameter. \Drupal::configFactory()->getEditable('core.extension') ->set('profile', $install_state['parameters']['profile']) ->save();