]> git.mxchange.org Git - friendica.git/blobdiff - mod/xrd.php
File was missing
[friendica.git] / mod / xrd.php
index f8e0a9c4098fdf98d8265b7f9f9733f5a30762af..094211360e03b107c23e7d841d385c96253b2ec1 100644 (file)
@@ -2,7 +2,6 @@
 
 require_once('include/crypto.php');
 
-if(! function_exists('xrd_init')) {
 function xrd_init(&$a) {
 
        $uri = urldecode(notags(trim($_GET['uri'])));
@@ -30,16 +29,12 @@ function xrd_init(&$a) {
        header('Access-Control-Allow-Origin: *');
        header("Content-type: text/xml");
 
-       if(get_config('system','diaspora_enabled')) {
-               $tpl = get_markup_template('xrd_diaspora.tpl');
-               $dspr = replace_macros($tpl,array(
-                       '$baseurl' => $a->get_baseurl(),
-                       '$dspr_guid' => $r[0]['guid'],
-                       '$dspr_key' => base64_encode(pemtorsa($r[0]['pubkey']))
-               ));
-       }
-       else
-               $dspr = '';
+       $tpl = get_markup_template('xrd_diaspora.tpl');
+       $dspr = replace_macros($tpl,array(
+               '$baseurl' => $a->get_baseurl(),
+               '$dspr_guid' => $r[0]['guid'],
+               '$dspr_key' => base64_encode(pemtorsa($r[0]['pubkey']))
+       ));
 
        $tpl = get_markup_template('xrd_person.tpl');
 
@@ -78,5 +73,5 @@ function xrd_init(&$a) {
 
        echo $arr['xml'];
        killme();
-}
+
 }