]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
Implement Smarty3
[friendica.git] / mod / poco.php
index cb9abb340ddb06fe071e32f06fc9de4cb85f4e68..abe2c8e35d715d2c8427a5203aa1923b8c0df786 100644 (file)
@@ -147,7 +147,13 @@ function poco_init(&$a) {
 
        if($format === 'xml') {
                header('Content-type: text/xml');
-               echo replace_macros(get_markup_template('poco_xml.tpl'),array_xmlify(array('$response' => $ret)));
+
+               $includes = array(
+                       '$poco_entry_xml' => 'poco_entry_xml.tpl'
+               );
+               $includes = set_template_includes($a->theme['template_engine'], $includes);
+
+               echo replace_macros(get_markup_template('poco_xml.tpl'),array_xmlify($includes + array('$response' => $ret)));
                http_status_exit(500);
        }
        if($format === 'json') {
@@ -159,4 +165,4 @@ function poco_init(&$a) {
                http_status_exit(500);
 
 
-}
\ No newline at end of file
+}