From d5893a947b84bdc382cb0bb741ce148c4ee8dd0e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 9 Feb 2014 02:10:10 +0100 Subject: [PATCH] The previous way didn't work, as the variable stack contains indexed array with 'name' and 'value' keys. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/classes/main/template/class_BaseTemplateEngine.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/classes/main/template/class_BaseTemplateEngine.php b/inc/classes/main/template/class_BaseTemplateEngine.php index b0c73ee2..e2cb11f6 100644 --- a/inc/classes/main/template/class_BaseTemplateEngine.php +++ b/inc/classes/main/template/class_BaseTemplateEngine.php @@ -1205,8 +1205,11 @@ class BaseTemplateEngine extends BaseFrameworkSystem { * @return void */ public function injectConfigVariables (array $variables) { - // Set it - $this->varStack['config'] = $variables; + // "Inject" all + foreach ($variables as $name => $value) { + // Set variable with name for 'config' group + $this->setVariable('config', $name, $value); + } // END - foreach } /** -- 2.39.5