diff options
author | Friendika <info@friendika.com> | 2011-09-28 15:07:01 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-28 15:07:01 -0700 |
commit | bedb4eb7150f8ccc48121a9512e9f591b27572a8 (patch) | |
tree | 7d9fcd6957e046350f9a051af851e2f452413c55 | |
parent | a1786cbf61a3ea6ff15ebcc578e7ad9800814391 (diff) | |
download | volse-hubzilla-bedb4eb7150f8ccc48121a9512e9f591b27572a8.tar.gz volse-hubzilla-bedb4eb7150f8ccc48121a9512e9f591b27572a8.tar.bz2 volse-hubzilla-bedb4eb7150f8ccc48121a9512e9f591b27572a8.zip |
just hostname not url in hm:host - host xrd document
-rw-r--r-- | boot.php | 2 | ||||
-rw-r--r-- | mod/hostxrd.php | 2 | ||||
-rw-r--r-- | view/xrd_host.tpl | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -8,7 +8,7 @@ require_once("include/pgettext.php"); require_once('include/nav.php'); define ( 'FRIENDIKA_PLATFORM', 'Free Friendika'); -define ( 'FRIENDIKA_VERSION', '2.3.1117' ); +define ( 'FRIENDIKA_VERSION', '2.3.1118' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DB_UPDATE_VERSION', 1092 ); diff --git a/mod/hostxrd.php b/mod/hostxrd.php index a1c24765b..fe61a874c 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -32,7 +32,7 @@ function hostxrd_init(&$a) { $tpl = file_get_contents('view/xrd_host.tpl'); echo str_replace(array( - '$zroot','$domain','$zot_post','$bigkey'),array(z_root(),z_path(),z_root() . '/post', salmon_key(get_config('system','site_pubkey'))),$tpl); + '$zhost','$zroot','$domain','$zot_post','$bigkey'),array($a->get_hostname(),z_root(),z_path(),z_root() . '/post', salmon_key(get_config('system','site_pubkey'))),$tpl); session_write_close(); exit(); diff --git a/view/xrd_host.tpl b/view/xrd_host.tpl index ee34c1e46..dbb20256f 100644 --- a/view/xrd_host.tpl +++ b/view/xrd_host.tpl @@ -2,7 +2,7 @@ <XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0' xmlns:hm='http://host-meta.net/xrd/1.0'> - <hm:Host>$zroot</hm:Host> + <hm:Host>$zhost</hm:Host> <Link rel='lrdd' template='$domain/xrd/?uri={uri}' /> <Link rel='acct-mgmt' href='$domain/amcd' /> |