diff --git a/app/bundles/InstallBundle/Configurator/Configurator.php b/app/bundles/InstallBundle/Configurator/Configurator.php index 71eee940642..5f11b14e6f6 100644 --- a/app/bundles/InstallBundle/Configurator/Configurator.php +++ b/app/bundles/InstallBundle/Configurator/Configurator.php @@ -80,6 +80,16 @@ public function isFileWritable() */ public function addStep(StepInterface $step) { + //merge existing settings + $properties = get_object_vars($step); + + $existing = $this->getParameters(); + foreach ($properties as $p => $v) { + if (isset($existing[$p])) { + $step->$p = $existing[$p]; + } + } + $this->steps[] = $step; } diff --git a/app/bundles/InstallBundle/Controller/InstallController.php b/app/bundles/InstallBundle/Controller/InstallController.php index 9a4a7cfd4a8..0f3e8a714e7 100644 --- a/app/bundles/InstallBundle/Controller/InstallController.php +++ b/app/bundles/InstallBundle/Controller/InstallController.php @@ -365,7 +365,10 @@ private function performDatabaseInstallation ($dbParams) return array( 'type' => 'error', - 'msg' => 'mautic.installer.error.connecting.database' + 'msg' => 'mautic.installer.error.connecting.database', + 'msgVars' => array( + '%exception%' => $exception->getMessage() + ) ); } diff --git a/app/bundles/InstallBundle/Views/Install/doctrine.html.php b/app/bundles/InstallBundle/Views/Install/doctrine.html.php index 81fb82b1dca..aa2eb3ef38d 100644 --- a/app/bundles/InstallBundle/Views/Install/doctrine.html.php +++ b/app/bundles/InstallBundle/Views/Install/doctrine.html.php @@ -27,49 +27,54 @@
trans('mautic.install.database.introtext'); ?>
- - start($form); ?> -row($form['driver']); ?> - -trans('mautic.install.user.introtext'); ?>
start($form); ?> -