X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoco.php;h=624a48d9ff1768b4654e59a63d44b20076f8a7b3;hb=a588ae4022cf3715ac4801a8ed9633b1be1d3dfb;hp=abe2c8e35d715d2c8427a5203aa1923b8c0df786;hpb=685a677bc91c38dc2f59d3565d6c413bca84629d;p=friendica.git diff --git a/mod/poco.php b/mod/poco.php index abe2c8e35d..624a48d9ff 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -147,14 +147,8 @@ function poco_init(&$a) { if($format === 'xml') { header('Content-type: text/xml'); - - $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); + echo replace_macros(get_markup_template('poco_xml.tpl'),array_xmlify(array('$response' => $ret))); + killme(); } if($format === 'json') { header('Content-type: application/json');