X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fhostxrd.php;h=27dc349db2df12977e428b9cedee672be9e8b281;hb=9259feec6f4b0a24c15f971a3dc8fa54f4f08141;hp=5b178e9b8f668be56980435db6d75a3dc78592eb;hpb=0c67c89715df801e0c887be50c9739db3bae7ca3;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index 5b178e9b8f..27dc349db2 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -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(); -} + }