X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fxrd.php;h=de0c20ea5d39c5b7ef2b2f12a387429f1fe26d1b;hb=9816f14d40a04867b2d96891c297252cc4a7006d;hp=0b4bd0d1e7d7a795799759fa5aa0ae6af5a01bf5;hpb=c16f314ec348205f4741e0171335168720e652d2;p=friendica.git diff --git a/mod/xrd.php b/mod/xrd.php index 0b4bd0d1e7..de0c20ea5d 100644 --- a/mod/xrd.php +++ b/mod/xrd.php @@ -24,10 +24,10 @@ function xrd_content(&$a) { $salmon_key = salmon_key($r[0]['spubkey']); - + header('Access-Control-Allow-Origin: *'); header("Content-type: text/xml"); - $tpl = load_view_file('view/xrd_person.tpl'); + $tpl = file_get_contents('view/xrd_person.tpl'); $o = replace_macros($tpl, array( '$accturi' => $uri, @@ -39,6 +39,10 @@ function xrd_content(&$a) { '$modexp' => 'data:application/magic-public-key,' . $salmon_key )); + + $arr = array('user' => $r[0], 'xml' => $o); + call_hooks('personal_xrd', $arr); + echo $o; killme();