ensure host xrd is correct, even if installed in subpath
This commit is contained in:
parent
de131c9e58
commit
b5ccb8e205
3 changed files with 7 additions and 7 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue