X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftemplate_processor.php;h=efdfbaecb78a73fb61bdf90c4b259015bbfe49c6;hb=9a3f5eaf7d4cd6b16f21e9a5f11278e55107b62f;hp=d1ff3998f0c84f0cf70a37a2d564a559da68e8f7;hpb=26d748f6d8d7616b4a337350df69898716ec043e;p=friendica.git diff --git a/include/template_processor.php b/include/template_processor.php index d1ff3998f0..efdfbaecb7 100644 --- a/include/template_processor.php +++ b/include/template_processor.php @@ -86,7 +86,7 @@ $r[$a] = $this->_get_var($b); } $this->nodes = Array(); - $tpl = load_view_file($tplfile); + $tpl = get_markup_template($tplfile); $ret = $this->replace($tpl, $r); $this->_pop_stack(); return $ret; @@ -128,7 +128,7 @@ #$s = str_replace(array("\n","\r"),array("§n§","§r§"),$s); $s = $this->_build_nodes($s); $s = preg_replace_callback('/\|\|([0-9]+)\|\|/', array($this, "_replcb_node"), $s); - $s = str_replace($this->search,$this->replace,$s); + $s = str_replace($this->search,$this->replace, (string) $s); return $s; }