X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ftemplate%2Fclass_BaseTemplateEngine.php;h=231d438235b7fd0d8767e0578b7917fa716bbe4c;hp=f58a15a1c0a496069e9cb46e3aae6c777402fc68;hb=1b91533196685d29640d1593b713361745889095;hpb=655f99b0e860b2922186ea6efd473d2643cf0e6a diff --git a/inc/classes/main/template/class_BaseTemplateEngine.php b/inc/classes/main/template/class_BaseTemplateEngine.php index f58a15a1..231d4382 100644 --- a/inc/classes/main/template/class_BaseTemplateEngine.php +++ b/inc/classes/main/template/class_BaseTemplateEngine.php @@ -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 */ - public function readVariable ($var, $stack = NULL) { + protected function readVariable ($var, $stack = NULL) { // First everything is not found $content = NULL; @@ -1146,7 +1146,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { } // 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);