X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftemplate_processor.php;h=27271e2edbded66d9166af2b92203de46e72a95d;hb=74267310d63ac4867f0238ed1b11013736790c93;hp=ebc03b8d84404907e350ec4367bf19e9d40a0299;hpb=488a38cd85bc349d5bc5f5d9541613ccec1f1806;p=friendica.git diff --git a/include/template_processor.php b/include/template_processor.php index ebc03b8d84..27271e2edb 100644 --- a/include/template_processor.php +++ b/include/template_processor.php @@ -1,9 +1,16 @@ r = $r; // remove comments block @@ -276,12 +284,18 @@ class Template { $count++; $s = $this->var_replace($s); } - return $s; + return template_unescape($s); } - + + public function get_template_file($file, $root='') { + $a = get_app(); + $template_file = get_template_file($a, $file, $root); + $content = file_get_contents($template_file); + return $content; + } + } -$t = new Template; function template_escape($s) {