]> git.mxchange.org Git - friendica.git/blobdiff - mod/hostxrd.php
use /servers instead of /siteinfo for the directory link in invitations
[friendica.git] / mod / hostxrd.php
index 4121764f1a526b340fc1c4805aa705a0a8a0f97a..c9f870a08c1d3235c4c3431cee64d33cfb7f203f 100644 (file)
@@ -1,8 +1,10 @@
 <?php
 
+use Friendica\App;
+
 require_once('include/crypto.php');
 
-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');
@@ -25,7 +27,6 @@ function hostxrd_init(&$a) {
                '$zot_post' => z_root() . '/post',
                '$bigkey' => salmon_key(get_config('system','site_pubkey')),
        ));
-       session_write_close();
        exit();
 
 }