]> git.mxchange.org Git - friendica.git/blobdiff - include/hostxrd.php
resolve file inclusion conflicts w/ multiple plugins, improve the typo checker
[friendica.git] / include / hostxrd.php
index f8c39892767f9bd49bea1193b315a901ddf949de..9161b265caecebfbb62f18a5ddec31b80e600648 100644 (file)
@@ -1,6 +1,11 @@
 <?php
+
+function hostxrd($hostname) {
+
        header("Content-type: text/xml");
        $tpl = file_get_contents('view/xrd_host.tpl');
-       echo str_replace('$domain',$this->hostname,$tpl);
+       echo str_replace('$domain',$hostname,$tpl);
        session_write_close();
        exit();
+
+}
\ No newline at end of file