X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhostxrd.php;h=16f132fe092ff2a871fcc3a0e15fe67cffbe84c6;hb=e62c1c3f81495f149f5613dc2c31ca896239949e;hp=5b178e9b8f668be56980435db6d75a3dc78592eb;hpb=d6cf791677e3c676108f84e64818ba2a272f6d08;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index 5b178e9b8f..16f132fe09 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -1,32 +1,33 @@ 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( + echo replace_macros($tpl, [ '$zhost' => $a->get_hostname(), - '$zroot' => z_root(), - '$domain' => z_path(), - '$zot_post' => z_root() . '/post', - '$bigkey' => salmon_key(get_config('system','site_pubkey')), - )); - session_write_close(); + '$zroot' => System::baseUrl(), + '$domain' => System::baseUrl(), + '$bigkey' => Salmon::salmonKey(Config::get('system', 'site_pubkey'))] + ); + exit(); } -}