]> git.mxchange.org Git - friendica.git/commitdiff
Fix JITConfigAdapter to retrieve non-db config.* values
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 12 Jul 2018 02:24:20 +0000 (22:24 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 16 Jul 2018 23:38:17 +0000 (19:38 -0400)
src/Core/Config/JITConfigAdapter.php

index 0596974aaa25c61078ff5ab091b271427e8713ee..c03a010cd4f0407ec85e4f183cbf360e86179550 100644 (file)
@@ -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] = '!<unset>!';