X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhostxrd.php;h=93a9d833c9626426826b4b983789f2f0fae9845b;hb=6c341962648b73c935c2de26996b07332b776a1f;hp=c9f870a08c1d3235c4c3431cee64d33cfb7f203f;hpb=86cae070f2a048e553c545caec54be72c1c14da5;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index c9f870a08c..93a9d833c9 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -1,32 +1,34 @@ get_hostname(),z_root(),z_path(),z_root() . '/post', salmon_key(get_config('system','site_pubkey'))),$tpl);*/ - $tpl = get_markup_template('xrd_host.tpl'); - echo replace_macros($tpl, array( - '$zhost' => $a->get_hostname(), - '$zroot' => z_root(), - '$domain' => z_path(), - '$zot_post' => z_root() . '/post', - '$bigkey' => salmon_key(get_config('system','site_pubkey')), - )); - exit(); + $tpl = Renderer::getMarkupTemplate('xrd_host.tpl'); + echo Renderer::replaceMacros($tpl, [ + '$zhost' => $a->getHostName(), + '$zroot' => System::baseUrl(), + '$domain' => System::baseUrl(), + '$bigkey' => Salmon::salmonKey(Config::get('system', 'site_pubkey'))] + ); + exit(); }