From b5ccb8e2055bf08d282ebb0cba2cac0d850fdc5a Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 14 Apr 2011 19:43:00 -0700 Subject: [PATCH] ensure host xrd is correct, even if installed in subpath --- boot.php | 2 +- include/hostxrd.php | 4 ++-- view/xrd_host.tpl | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/boot.php b/boot.php index 0dd1d3823..1ef80e515 100644 --- a/boot.php +++ b/boot.php @@ -290,7 +290,7 @@ class App { if($this->cmd === '.well-known/host-meta') { require_once('include/hostxrd.php'); - hostxrd($this->hostname); + hostxrd($this->get_baseurl()); // NOTREACHED } diff --git a/include/hostxrd.php b/include/hostxrd.php index 9161b265c..987175c33 100644 --- a/include/hostxrd.php +++ b/include/hostxrd.php @@ -1,10 +1,10 @@ $domain - - - + + + + href="$domain/oexchange/xrd" />