From: Roland Häder Date: Mon, 18 Feb 2013 05:05:24 +0000 (+0000) Subject: This seems to fit most cases X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=042dcb70532105f09afca4282979ec9f574be338;p=core.git This seems to fit most cases --- 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 }