fix db instance creation

This commit is contained in:
fser 2014-07-08 14:39:06 +02:00
parent 9f769bdaa6
commit c4c2db1d9f
1 changed files with 2 additions and 4 deletions

View File

@ -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();