-fix installation error
This commit is contained in:
parent
3d6336cae7
commit
973a415164
8 changed files with 4 additions and 9 deletions
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
require_once __DIR__."/configs/conf.php";
|
||||
Config::loadConfig();
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
|
||||
require_once __DIR__."/configs/ACL.php";
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue