From 538760d9daf9c1d9442364da516edba3879aa70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Sun, 13 May 2018 08:01:16 +0200 Subject: [PATCH] No direct $a->config['foo'] needed when Config::get() is around ... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/Core/PConfig.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Core/PConfig.php b/src/Core/PConfig.php index bfa52f5a3..274122ded 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);