From bedb4eb7150f8ccc48121a9512e9f591b27572a8 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 28 Sep 2011 15:07:01 -0700 Subject: [PATCH] just hostname not url in hm:host - host xrd document --- boot.php | 2 +- mod/hostxrd.php | 2 +- view/xrd_host.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 24f96528..07fa64bb 100644 --- a/boot.php +++ b/boot.php @@ -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 a1c24765..fe61a874 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 ee34c1e4..dbb20256 100644 --- a/view/xrd_host.tpl +++ b/view/xrd_host.tpl @@ -2,7 +2,7 @@ - $zroot + $zhost