Subversion Repositories PHPX

Compare Revisions

Last modification

Regard whitespace Rev 68 → Rev 69

/trunk/Db/Database.php
158,6 → 158,7
*/
public function readConfig ()
{
/* FIXME: Configuration file path should not be hardcoded */
$config = parse_ini_file('application/.config', true);
if ($config !== false)
{
173,9 → 174,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];
}