]> git.mxchange.org Git - friendica.git/commitdiff
No direct $a->config['foo'] needed when Config::get() is around ...
authorRoland Häder <roland@mxchange.org>
Sun, 13 May 2018 06:01:16 +0000 (08:01 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 14 May 2018 20:50:05 +0000 (22:50 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/Core/PConfig.php

index bfa52f5a36ebd7e480d97d2c638ccf8a77b2958e..274122deda4513dd63acaeded4414989b0d7fd21 100644 (file)
@@ -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);