/trunk/Db/Database.php |
---|
158,7 → 158,6 |
*/ |
public function readConfig () |
{ |
/* FIXME: Configuration file path should not be hardcoded */ |
$config = parse_ini_file('application/.config', true); |
if ($config !== false) |
{ |
174,9 → 173,9 |
{ |
$property = "_$key"; |
if (isset($dbconfig[$key]) |
&& ($key == 'dbname' |
&& $key == 'dbname' |
|| (property_exists($this, $property) |
&& $this->$property === null))) |
&& $this->$property === null)) |
{ |
$this->$property = $dbconfig[$key]; |
} |