Fixed web installer to allow users to change db creds if we can't connect (#9126)

This commit is contained in:
Neil Lathwood 2018-09-01 16:54:25 +01:00 committed by Tony Murray
parent f5f964fd65
commit a8f10deee5

View File

@ -52,6 +52,10 @@ if ($stage > 1) {
try {
if ($stage != 6) {
dbConnect($dbhost, $dbuser, $dbpass, $dbname, $dbport, $dbsocket);
if (dbIsConnected() === false) {
$msg = "We could not connect to your database, please check the details and try again";
$stage = 1;
}
}
if ($stage == 2 && $_SESSION['build-ok'] == true) {
$stage = 3;