From 548189bb6c0027a25e81f293f55a7aca82154123 Mon Sep 17 00:00:00 2001 From: fser Date: Sat, 5 Jul 2014 22:28:29 +0200 Subject: [PATCH] Revert "fixing bootstrap to fit with new DB class" This reverts commit 0acdc73224a8e3ae947f5ed9d958dbb8b2a611c5. --- phpunit/bootstrap.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/phpunit/bootstrap.php b/phpunit/bootstrap.php index af69408f..cce42a6e 100644 --- a/phpunit/bootstrap.php +++ b/phpunit/bootstrap.php @@ -119,12 +119,20 @@ foreach ($mysqlConfigFile as $line) { * This class heriting from the db class of the phplib manages * the connection to the MySQL database. */ -class DB_system extends DB_Sql { - function __construct() { - global $L_MYSQL_HOST,$L_MYSQL_DATABASE,$L_MYSQL_LOGIN,$L_MYSQL_PWD; - parent::__construct($L_MYSQL_DATABASE, $L_MYSQL_HOST, $L_MYSQL_LOGIN, $L_MYSQL_PWD); - } -} +class DB_system extends DB_Sql { + var $Host,$Database,$User,$Password; + /** + * Constructor + */ + function DB_system($user,$database,$password) { + global $L_MYSQL_HOST,$L_MYSQL_DATABASE,$L_MYSQL_LOGIN,$L_MYSQL_PWD; + $this->Host = "127.0.0.1"; + $this->Database = $database; + $this->User = $user; + $this->Password = $password; + } +} + // Creates database from schema // *********************************************