Subversion Repositories PHPX

Compare Revisions

Last modification

Regard whitespace Rev 69 → Rev 68

/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];
}