]> git.mxchange.org Git - friendica.git/blobdiff - mod/hostxrd.php
added spaces (space-time!) and TODO that x() is maybe proper way?
[friendica.git] / mod / hostxrd.php
index 5b178e9b8f668be56980435db6d75a3dc78592eb..27dc349db2df12977e428b9cedee672be9e8b281 100644 (file)
@@ -2,8 +2,7 @@
 
 require_once('include/crypto.php');
 
-if(! function_exists('hostxrd_init')) {
-function hostxrd_init(&$a) {
+function hostxrd_init(App $a) {
        header('Access-Control-Allow-Origin: *');
        header("Content-type: text/xml");
        $pubkey = get_config('system','site_pubkey');
@@ -26,7 +25,6 @@ function hostxrd_init(&$a) {
                '$zot_post' => z_root() . '/post',
                '$bigkey' => salmon_key(get_config('system','site_pubkey')),
        ));
-       session_write_close();
        exit();
-}
+
 }