FIX Test that web dir is correct in install
This commit is contained in:
parent
90a42b23b3
commit
dc73296794
@ -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 '<div class="error">'.$langs->trans("ErrorBadValueForParameter", $main_dir, $langs->transnoentitiesnoconv("WebPagesDirectory")).'</div>';
|
||||
print '<br>';
|
||||
//print $langs->trans("BecauseConnectionFailedParametersMayBeWrong").'<br><br>';
|
||||
print $langs->trans("ErrorGoBackAndCorrectParameters");
|
||||
$error++;
|
||||
}
|
||||
|
||||
// Test database connection
|
||||
if (!$error) {
|
||||
$result = @include_once $main_dir."/core/db/".$db_type.'.class.php';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user