From c8d3067d0a284c1e0b3ac40629f28ae95a63e7f5 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 11 Jul 2018 22:24:20 -0400 Subject: [PATCH] Fix JITConfigAdapter to retrieve non-db config.* values --- src/Core/Config/JITConfigAdapter.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Core/Config/JITConfigAdapter.php b/src/Core/Config/JITConfigAdapter.php index 0596974aa..c03a010cd 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] = '!!';