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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user