X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fxrd.php;h=094211360e03b107c23e7d841d385c96253b2ec1;hb=13150c09a56de662677ee17a1614a2ee55931890;hp=c23119145ca4d0685f0aab07ed549dd7df997f3d;hpb=8a5fada863364c729decea75c7b6e1549a7b81ce;p=friendica.git diff --git a/mod/xrd.php b/mod/xrd.php index c23119145c..094211360e 100644 --- a/mod/xrd.php +++ b/mod/xrd.php @@ -29,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');