Skip to content

Commit

Permalink
hechoendrupal#1458 Casting database driver to string before passing t…
Browse files Browse the repository at this point in the history
…o install settings form
  • Loading branch information
ericmaster committed Dec 12, 2015
1 parent 8d195fe commit a819db2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Command/Site/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,18 +374,20 @@ protected function getDefaultLanguage()

protected function runInstaller($output, $profile, $langcode, $site_name, $site_mail, $account_name, $account_mail, $account_pass, $database)
{

$drupal = $this->getDrupalHelper();
$drupal->loadLegacyFile('/core/includes/install.core.inc');

$driver = (string) $database['driver'];
$settings = [
'parameters' => [
'profile' => $profile,
'langcode' => $langcode,
],
'forms' => [
'install_settings_form' => [
'driver' => $database['driver'],
$database['driver'] => $database,
'driver' => $driver,
$driver => $database,
'op' => 'Save and continue',
],
'install_configure_form' => [
Expand Down

0 comments on commit a819db2

Please sign in to comment.