ensure host xrd is correct, even if installed in subpath
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
function hostxrd($hostname) {
|
||||
function hostxrd($baseurl) {
|
||||
|
||||
header("Content-type: text/xml");
|
||||
$tpl = file_get_contents('view/xrd_host.tpl');
|
||||
echo str_replace('$domain',$hostname,$tpl);
|
||||
echo str_replace('$domain',$baseurl,$tpl);
|
||||
session_write_close();
|
||||
exit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user