1
1
Fork 0

Remove/replace killme() with *exit()

This commit is contained in:
Hypolite Petovan 2018-12-26 00:40:12 -05:00
commit 895b3abf32
75 changed files with 167 additions and 187 deletions

View file

@ -46,7 +46,7 @@ function poco_init(App $a) {
$ret = PortableContact::serverlist();
header('Content-type: application/json');
echo json_encode($ret);
killme();
exit();
}
if ($a->argc > 1 && $a->argv[1] === '@global') {
@ -378,12 +378,12 @@ function poco_init(App $a) {
if ($format === 'xml') {
header('Content-type: text/xml');
echo Renderer::replaceMacros(Renderer::getMarkupTemplate('poco_xml.tpl'), XML::arrayEscape(['$response' => $ret]));
killme();
exit();
}
if ($format === 'json') {
header('Content-type: application/json');
echo json_encode($ret);
killme();
exit();
} else {
System::httpExit(500);
}