-fix installation error

This commit is contained in:
Martin Konecny 2013-01-15 15:37:26 -05:00
parent 3d6336cae7
commit 973a415164
8 changed files with 4 additions and 9 deletions

View file

@ -1,6 +1,5 @@
<?php
require_once __DIR__."/configs/conf.php";
Config::loadConfig();
$CC_CONFIG = Config::getConfig();
require_once __DIR__."/configs/ACL.php";

View file

@ -7,7 +7,7 @@
*/
class Config {
private static $CC_CONFIG;
private static $CC_CONFIG = null;
public static function loadConfig() {
$CC_CONFIG = array(
/* ================================================ storage configuration */
@ -64,6 +64,9 @@ class Config {
}
public static function getConfig() {
if (is_null(self::$CC_CONFIG)) {
self::loadConfig();
}
return self::$CC_CONFIG;
}
}