X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fxrd.php;h=094211360e03b107c23e7d841d385c96253b2ec1;hb=13150c09a56de662677ee17a1614a2ee55931890;hp=f8e0a9c4098fdf98d8265b7f9f9733f5a30762af;hpb=0c67c89715df801e0c887be50c9739db3bae7ca3;p=friendica.git diff --git a/mod/xrd.php b/mod/xrd.php index f8e0a9c409..094211360e 100644 --- a/mod/xrd.php +++ b/mod/xrd.php @@ -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(); -} + }