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']); ?> - -
-
- row($form['host']); ?> -
-
- row($form['port']); ?> +
+
+
trans('mautic.install.database.introtext'); ?>
-
+
+ row($form['driver']); ?> -
-
- row($form['name']); ?> -
-
- row($form['table_prefix']); ?> -
-
+
+
+ row($form['host']); ?> +
+
+ row($form['port']); ?> +
+
-
-
- row($form['user']); ?> -
-
- row($form['password']); ?> -
-
+
+
+ row($form['name']); ?> +
+
+ row($form['table_prefix']); ?> +
+
-
-
- row($form['backup_tables']); ?> -
- vars['data']) ? ' hide' : ''; ?> -
- row($form['backup_prefix']); ?> +
+
+ row($form['user']); ?> +
+
+ row($form['password']); ?> +
+
+ +
+
+ row($form['backup_tables']); ?> +
+ vars['data']) ? ' hide' : ''; ?> +
+ row($form['backup_prefix']); ?> +
+
+
@@ -82,5 +87,4 @@ row($form['buttons']); ?>
- end($form); ?> \ No newline at end of file diff --git a/app/bundles/InstallBundle/Views/Install/user.html.php b/app/bundles/InstallBundle/Views/Install/user.html.php index db1cae64c16..f07f60536a7 100644 --- a/app/bundles/InstallBundle/Views/Install/user.html.php +++ b/app/bundles/InstallBundle/Views/Install/user.html.php @@ -14,33 +14,40 @@ -

trans('mautic.install.user.introtext'); ?>

start($form); ?> -
-
- row($form['username']); ?> +
+
+
trans('mautic.install.user.introtext'); ?>
-
- row($form['password']); ?> -
-
- - -
-
- row($form['firstname']); ?> -
-
- row($form['lastname']); ?> -
-
- - -
-
- row($form['email']); ?> +
+ +
+
+ row($form['username']); ?> +
+
+ row($form['password']); ?> +
+
+ + +
+
+ row($form['firstname']); ?> +
+
+ row($form['lastname']); ?> +
+
+ + +
+
+ row($form['email']); ?> +
+