From: Roland Häder Date: Sun, 13 May 2018 06:01:16 +0000 (+0200) Subject: No direct $a->config['foo'] needed when Config::get() is around ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=538760d9daf9c1d9442364da516edba3879aa70e;p=friendica.git No direct $a->config['foo'] needed when Config::get() is around ... Signed-off-by: Roland Häder --- diff --git a/src/Core/PConfig.php b/src/Core/PConfig.php index bfa52f5a36..274122deda 100644 --- a/src/Core/PConfig.php +++ b/src/Core/PConfig.php @@ -29,9 +29,7 @@ class PConfig extends BaseObject public static function init($uid) { - $a = self::getApp(); - - if (isset($a->config['system']['config_adapter']) && $a->config['system']['config_adapter'] == 'preload') { + if (Config::get('system', 'config_adapter') == 'preload') { self::$adapter = new Config\PreloadPConfigAdapter($uid); } else { self::$adapter = new Config\JITPConfigAdapter($uid);