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 b0c73ee..e2cb11f 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
        }
 
        /**