fixing db instance for good
This commit is contained in:
parent
920cd062fa
commit
b6be25f786
|
@ -119,8 +119,7 @@ foreach ($mysqlConfigFile as $line) {
|
||||||
* the connection to the MySQL database.
|
* the connection to the MySQL database.
|
||||||
*/
|
*/
|
||||||
class DB_system extends DB_Sql {
|
class DB_system extends DB_Sql {
|
||||||
function __construct() {
|
function __construct($database, $user, $password) {
|
||||||
global $database, $user, $password;
|
|
||||||
parent::__construct($database, '127.0.0.1', $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";
|
echo "*** In progress: mysql.sql imported\n";
|
||||||
|
|
||||||
$db = new \DB_system();
|
$db = new \DB_system($database, $user, $password);
|
||||||
$cuid = 0;
|
$cuid = 0;
|
||||||
$variables = new \m_variables();
|
$variables = new \m_variables();
|
||||||
$mem = new \m_mem();
|
$mem = new \m_mem();
|
||||||
|
|
Loading…
Reference in New Issue