This seems to fit most cases
authorRoland Häder <roland@mxchange.org>
Mon, 18 Feb 2013 05:05:24 +0000 (05:05 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 18 Feb 2013 05:05:24 +0000 (05:05 +0000)
inc/classes/main/template/class_BaseTemplateEngine.php

index 577c4ea6a9b0bdd2504e7b64d423d39c56f90c3a..46667de55bcc0fe22a4b68e80ee344a9a1f92f04 100644 (file)
@@ -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
        }