Fixed setup issues (improved modularity)

SVN:trunk[1982]
This commit is contained in:
Romain Quetiez
2012-05-10 09:30:48 +00:00
parent fb8d93319d
commit 39be3b449e
9 changed files with 457 additions and 340 deletions

View File

@@ -464,7 +464,15 @@ class utils
if (self::$oConfig == null)
{
$sConfigFile = self::GetConfigFilePath();
self::$oConfig = new Config($sConfigFile);
if (file_exists($sConfigFile))
{
self::$oConfig = new Config($sConfigFile);
}
else
{
// When executing the setup, the config file may be still missing
self::$oConfig = new Config();
}
}
return self::$oConfig;
}