]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/template/class_BaseTemplateEngine.php
Made readVariable() protected again, if you need access to this method, implement...
[core.git] / inc / classes / main / template / class_BaseTemplateEngine.php
index f58a15a1c0a496069e9cb46e3aae6c777402fc68..231d438235b7fd0d8767e0578b7917fa716bbe4c 100644 (file)
@@ -243,7 +243,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
         * @param       $stack          Optional variable stack to look in
         * @return      $content        Content of the variable or null if not found
         */
         * @param       $stack          Optional variable stack to look in
         * @return      $content        Content of the variable or null if not found
         */
-       public function readVariable ($var, $stack = NULL) {
+       protected function readVariable ($var, $stack = NULL) {
                // First everything is not found
                $content = NULL;
 
                // First everything is not found
                $content = NULL;
 
@@ -1146,7 +1146,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem {
                } // END - if
 
                // Iterate through all general variables
                } // END - if
 
                // Iterate through all general variables
-               foreach ($this->getVarStack('general') as $index=>$currVariable) {
+               foreach ($this->getVarStack('general') as $index => $currVariable) {
                        // Compile the value
                        $value = $this->compileRawCode($this->readVariable($currVariable['name']), true);
 
                        // Compile the value
                        $value = $this->compileRawCode($this->readVariable($currVariable['name']), true);