]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
Remove/replace killme() with *exit()
[friendica.git] / mod / poco.php
index 3456beb12896a4b2a507f365b28330d66ba76f54..477b48b04472a29b42e0b24ca94bf38bdf478b36 100644 (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);
        }