X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FInstaller%2FForm%2FSiteSettingsForm.php;h=a0b576edcc66c8883d50db37316b36ec78265a8b;hb=refs%2Fheads%2Fd864;hp=5442d1542ef6b76cb258b8f86140d3e8cce0191e;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php b/web/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php index 5442d1542..a0b576edc 100644 --- a/web/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php +++ b/web/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php @@ -11,6 +11,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface; /** * Provides a form to configure and rewrite settings.php. + * + * @internal */ class SiteSettingsForm extends FormBase { @@ -122,7 +124,7 @@ class SiteSettingsForm extends FormBase { $form['settings'][$key]['#states'] = [ 'visible' => [ ':input[name=driver]' => ['value' => $key], - ] + ], ]; } @@ -176,7 +178,7 @@ class SiteSettingsForm extends FormBase { */ protected function getDatabaseErrors(array $database, $settings_file) { $errors = install_database_errors($database, $settings_file); - $form_errors = array_filter($errors, function($value) { + $form_errors = array_filter($errors, function ($value) { // Errors keyed by something other than an integer already are linked to // form elements. return is_int($value); @@ -223,11 +225,6 @@ class SiteSettingsForm extends FormBase { 'value' => Crypt::randomBytesBase64(55), 'required' => TRUE, ]; - // Remember the profile which was used. - $settings['settings']['install_profile'] = (object) [ - 'value' => $install_state['parameters']['profile'], - 'required' => TRUE, - ]; drupal_rewrite_settings($settings);