#10138 errors position fixed

This commit is contained in:
Daniel Cebrian 2023-01-18 17:22:18 +01:00
parent e0b1acb9c4
commit 5db55fcca9

View File

@ -919,6 +919,7 @@ function install_step4()
} }
if ($step1 == 1) { if ($step1 == 1) {
echo '<div class="err-sql">';
$step2 = mysql_select_db($dbname); $step2 = mysql_select_db($dbname);
check_generic($step2, "Opening database '$dbname'"); check_generic($step2, "Opening database '$dbname'");
@ -1002,6 +1003,7 @@ function install_step4()
fclose($cfgout); fclose($cfgout);
chmod($pandora_config, 0600); chmod($pandora_config, 0600);
check_generic($step7, "Created new config file at '".$pandora_config."'"); check_generic($step7, "Created new config file at '".$pandora_config."'");
echo '</div>';
} }
} }
@ -1031,12 +1033,12 @@ function install_step4()
} }
if ($step1 == 1) { if ($step1 == 1) {
echo '<div class="err-sql">';
$step2 = mysqli_select_db($connection, $dbname); $step2 = mysqli_select_db($connection, $dbname);
check_generic($step2, "Opening database '$dbname'"); check_generic($step2, "Opening database '$dbname'");
$step3 = parse_mysqli_dump($connection, 'pandoradb.sql'); $step3 = parse_mysqli_dump($connection, 'pandoradb.sql');
check_generic($step3, 'Creating schema'); check_generic($step3, 'Creating schema');
$step4 = parse_mysqli_dump($connection, 'pandoradb_data.sql'); $step4 = parse_mysqli_dump($connection, 'pandoradb_data.sql');
check_generic($step4, 'Populating database'); check_generic($step4, 'Populating database');
if (PHP_OS == 'FreeBSD') { if (PHP_OS == 'FreeBSD') {
@ -1123,6 +1125,7 @@ function install_step4()
fclose($cfgout); fclose($cfgout);
chmod($pandora_config, 0600); chmod($pandora_config, 0600);
check_generic($step7, "Created new config file at '".$pandora_config."'"); check_generic($step7, "Created new config file at '".$pandora_config."'");
echo '</div>';
} }
} }
@ -1134,7 +1137,7 @@ function install_step4()
echo '</table>'; echo '</table>';
echo '</div>'; echo '</div>';
echo '<div class="col-md-6">'; echo '<div class="col-md-6" id="content-errors">';
if ($everything_ok !== 1) { if ($everything_ok !== 1) {
$info = "<div class='err'><b>There were some problems. $info = "<div class='err'><b>There were some problems.
Installation was not completed.</b> Installation was not completed.</b>