]> git.mxchange.org Git - core.git/commitdiff
The previous way didn't work, as the variable stack contains indexed array with ...
authorRoland Haeder <roland@mxchange.org>
Sun, 9 Feb 2014 01:10:10 +0000 (02:10 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 9 Feb 2014 01:10:10 +0000 (02:10 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/template/class_BaseTemplateEngine.php

index b0c73ee2865a0c179eb57346095559b78bd496d6..e2cb11f6221fa76b6ee0db993efa4d48496b5c69 100644 (file)
@@ -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
        }
 
        /**