X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhostxrd.php;h=93a9d833c9626426826b4b983789f2f0fae9845b;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=fd4bfd10b06fa8daea782515fa5489fa15da7504;hpb=a0530d1066d7268f1b1ea67bc3c254e9f9fc5ec8;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index fd4bfd10b0..93a9d833c9 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -1,33 +1,34 @@ get_hostname(),System::baseUrl(),System::baseUrl(),System::baseUrl() . '/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(), + $tpl = Renderer::getMarkupTemplate('xrd_host.tpl'); + echo Renderer::replaceMacros($tpl, [ + '$zhost' => $a->getHostName(), '$zroot' => System::baseUrl(), '$domain' => System::baseUrl(), - '$zot_post' => System::baseUrl() . '/post', - '$bigkey' => salmon_key(get_config('system','site_pubkey')), - )); - exit(); + '$bigkey' => Salmon::salmonKey(Config::get('system', 'site_pubkey'))] + ); + exit(); }