ensure host xrd is correct, even if installed in subpath

This commit is contained in:
Friendika 2011-04-14 19:43:00 -07:00
commit b5ccb8e205
3 changed files with 7 additions and 7 deletions

View file

@ -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();