fixing db instance for good

This commit is contained in:
fser 2014-07-08 15:06:21 +02:00
parent 920cd062fa
commit b6be25f786
1 changed files with 2 additions and 3 deletions

View File

@ -119,8 +119,7 @@ foreach ($mysqlConfigFile as $line) {
* the connection to the MySQL database.
*/
class DB_system extends DB_Sql {
function __construct() {
global $database, $user, $password;
function __construct($database, $user, $password) {
parent::__construct($database, '127.0.0.1', $user, $password);
}
}
@ -142,7 +141,7 @@ foreach ($queryList as $exec_command) {
}
echo "*** In progress: mysql.sql imported\n";
$db = new \DB_system();
$db = new \DB_system($database, $user, $password);
$cuid = 0;
$variables = new \m_variables();
$mem = new \m_mem();