From dc7329679457a6cf75069bc3f4dee823ddf74da2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 Sep 2022 21:30:12 +0200 Subject: [PATCH] FIX Test that web dir is correct in install --- htdocs/install/step1.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/install/step1.php b/htdocs/install/step1.php index 7235e564275..24b5dba4d01 100644 --- a/htdocs/install/step1.php +++ b/htdocs/install/step1.php @@ -199,6 +199,14 @@ if (!empty($main_url) && substr($main_url, dol_strlen($main_url) - 1) == "/") { $main_url = substr($main_url, 0, dol_strlen($main_url) - 1); } +if (!dol_is_dir($main_dir.'/core/db/')) { + print '
'.$langs->trans("ErrorBadValueForParameter", $main_dir, $langs->transnoentitiesnoconv("WebPagesDirectory")).'
'; + print '
'; + //print $langs->trans("BecauseConnectionFailedParametersMayBeWrong").'

'; + print $langs->trans("ErrorGoBackAndCorrectParameters"); + $error++; +} + // Test database connection if (!$error) { $result = @include_once $main_dir."/core/db/".$db_type.'.class.php';