X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhostxrd.php;h=30343381c393c9ff119c4cc637a93bf121a17ac1;hb=f2ca3e5be44192c486e8e3af2a993e065ad40a7d;hp=d41d8448050b7befb8e670f2a2302b14f46edaae;hpb=4f25396faeaa501907e93b24ee51ebdd08f84993;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index d41d844805..30343381c3 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -1,30 +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( - '$zhost' => $a->get_hostname(), - '$zroot' => z_root(), - '$domain' => z_path(), - '$zot_post' => z_root() . '/post', - '$bigkey' => salmon_key(get_config('system','site_pubkey')), - )); - exit(); + echo replace_macros($tpl, [ + '$zhost' => $a->getHostName(), + '$zroot' => System::baseUrl(), + '$domain' => System::baseUrl(), + '$bigkey' => Salmon::salmonKey(Config::get('system', 'site_pubkey'))] + ); + exit(); }