From: Hypolite Petovan Date: Thu, 12 Jul 2018 02:24:20 +0000 (-0400) Subject: Fix JITConfigAdapter to retrieve non-db config.* values X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c8d3067d0a284c1e0b3ac40629f28ae95a63e7f5;p=friendica.git Fix JITConfigAdapter to retrieve non-db config.* values --- diff --git a/src/Core/Config/JITConfigAdapter.php b/src/Core/Config/JITConfigAdapter.php index 0596974aaa..c03a010cd4 100644 --- a/src/Core/Config/JITConfigAdapter.php +++ b/src/Core/Config/JITConfigAdapter.php @@ -71,6 +71,12 @@ class JITConfigAdapter extends BaseObject implements IConfigAdapter $this->in_db[$cat][$k] = false; return $a->config[$cat][$k]; + } elseif (isset($a->config[$k])) { + // Assign the value (mostly) from config/local.ini.php file to the cache + $this->cache[$k] = $a->config[$k]; + $this->in_db[$k] = false; + + return $a->config[$k]; } $this->cache[$cat][$k] = '!!';