]> git.mxchange.org Git - friendica.git/blobdiff - mod/xrd.php
"notes" app
[friendica.git] / mod / xrd.php
index 0b4bd0d1e7d7a795799759fa5aa0ae6af5a01bf5..8ac6ff7cfca81d5b174f2d9f7ac309ab17dcbc26 100644 (file)
@@ -27,7 +27,7 @@ function xrd_content(&$a) {
 
        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();