No direct $a->config['foo'] needed when Config::get() is around ...

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2018-05-13 08:01:16 +02:00
parent 751394fc1d
commit 538760d9da
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -29,9 +29,7 @@ class PConfig extends BaseObject
public static function init($uid) public static function init($uid)
{ {
$a = self::getApp(); if (Config::get('system', 'config_adapter') == 'preload') {
if (isset($a->config['system']['config_adapter']) && $a->config['system']['config_adapter'] == 'preload') {
self::$adapter = new Config\PreloadPConfigAdapter($uid); self::$adapter = new Config\PreloadPConfigAdapter($uid);
} else { } else {
self::$adapter = new Config\JITPConfigAdapter($uid); self::$adapter = new Config\JITPConfigAdapter($uid);