aboutsummaryrefslogtreecommitdiffstats
path: root/include/hostxrd.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/hostxrd.php')
-rw-r--r--include/hostxrd.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/hostxrd.php b/include/hostxrd.php
index 7040f927d..18c3e4b1e 100644
--- a/include/hostxrd.php
+++ b/include/hostxrd.php
@@ -1,11 +1,10 @@
<?php
-function hostxrd($baseurl) {
-
+function hostxrd() {
header('Access-Control-Allow-Origin: *');
header("Content-type: text/xml");
$tpl = file_get_contents('view/xrd_host.tpl');
- echo str_replace('$domain',$baseurl,$tpl);
+ echo str_replace(array('$zroot','$domain'),array(z_root(),z_path()),$tpl);
session_write_close();
exit();