Fixed the connection settings being incorrect

This commit is contained in:
laf
2015-08-15 17:33:41 +00:00
parent 3745ffdc1c
commit a8f0d91aae
2 changed files with 3 additions and 2 deletions

View File

@ -307,6 +307,7 @@ elseif($stage == "2") {
$config['db_user']=$dbuser;
$config['db_pass']=$dbpass;
$config['db_name']=$dbname;
$config['db']['extension']='mysqli';
$sql_file = '../build.sql';
require '../build-base.php';
?>

View File

@ -109,7 +109,7 @@ foreach ($filelist as $file) {
if ($line[0] != '#') {
if ($config['db']['extension'] == 'mysqli') {
$update = mysqli_query($database_link, $line);
$update = mysqli_query($connection, $line);
}
else {
$update = mysql_query($line);
@ -118,7 +118,7 @@ foreach ($filelist as $file) {
$err++;
if ($debug) {
if ($config['db']['extension'] == 'mysqli') {
echo mysqli_error($database_link)."\n";
echo mysqli_error($connection)."\n";
}
else {
echo mysql_error()."\n";