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');