fix db instance creation
This commit is contained in:
parent
9f769bdaa6
commit
c4c2db1d9f
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
// *****************************************************************************
|
||||
//
|
||||
// Alternc bootstrapping
|
||||
|
@ -122,7 +121,7 @@ foreach ($mysqlConfigFile as $line) {
|
|||
class DB_system extends DB_Sql {
|
||||
function __construct() {
|
||||
global $database, $user, $password;
|
||||
parent::__construct('127.0.0.1', $database, $user, $password);
|
||||
parent::__construct($database, '127.0.0.1', $user, $password);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -143,8 +142,7 @@ foreach ($queryList as $exec_command) {
|
|||
}
|
||||
echo "*** In progress: mysql.sql imported\n";
|
||||
|
||||
$db = new \DB_system($user,$database,$password);
|
||||
$db->connect();
|
||||
$db = new \DB_system();
|
||||
$cuid = 0;
|
||||
$variables = new \m_variables();
|
||||
$mem = new \m_mem();
|
||||
|
|
Loading…
Reference in New Issue