fix db instance creation
This commit is contained in:
parent
9f769bdaa6
commit
c4c2db1d9f
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// *****************************************************************************
|
// *****************************************************************************
|
||||||
//
|
//
|
||||||
// Alternc bootstrapping
|
// Alternc bootstrapping
|
||||||
|
@ -122,7 +121,7 @@ foreach ($mysqlConfigFile as $line) {
|
||||||
class DB_system extends DB_Sql {
|
class DB_system extends DB_Sql {
|
||||||
function __construct() {
|
function __construct() {
|
||||||
global $database, $user, $password;
|
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";
|
echo "*** In progress: mysql.sql imported\n";
|
||||||
|
|
||||||
$db = new \DB_system($user,$database,$password);
|
$db = new \DB_system();
|
||||||
$db->connect();
|
|
||||||
$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