From 042dcb70532105f09afca4282979ec9f574be338 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 18 Feb 2013 05:05:24 +0000 Subject: [PATCH] This seems to fit most cases --- .../main/template/class_BaseTemplateEngine.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/inc/classes/main/template/class_BaseTemplateEngine.php b/inc/classes/main/template/class_BaseTemplateEngine.php index 577c4ea6..46667de5 100644 --- a/inc/classes/main/template/class_BaseTemplateEngine.php +++ b/inc/classes/main/template/class_BaseTemplateEngine.php @@ -1205,10 +1205,16 @@ class BaseTemplateEngine extends BaseFrameworkSystem { // Remove it from stack $this->removeVariable($currVariable['name'], 'general'); - - // Re-assign the variable //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(__METHOD__ . ': value='. $value . ',name=' . $currVariable['name'] . ',index=' . $index); - $this->setVariable('config', $currVariable['name'], $value); + + // Is it a configuration key? + if ($this->getConfigInstance()->isConfigurationEntrySet($value)) { + // The value itself is a configuration entry + $this->assignConfigVariable($value); + } else { + // Re-assign the value directly + $this->setVariable('config', $currVariable['name'], $value); + } } // END - foreach } -- 2.39.5