mirror of
https://github.com/friendica/friendica
synced 2025-04-28 01:10:12 +00:00
Move *ConfigValue functions to App
This commit is contained in:
parent
047f949967
commit
87f2d18554
6 changed files with 150 additions and 172 deletions
|
@ -29,9 +29,7 @@ class Config extends BaseObject
|
|||
|
||||
public static function init()
|
||||
{
|
||||
$a = self::getApp();
|
||||
|
||||
if (isset($a->config['system']['config_adapter']) && $a->config['system']['config_adapter'] == 'preload') {
|
||||
if (self::getApp()->getConfigValue('system', 'config_adapter') == 'preload') {
|
||||
self::$adapter = new Config\PreloadConfigAdapter();
|
||||
} else {
|
||||
self::$adapter = new Config\JITConfigAdapter();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue