X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhostxrd.php;h=93a9d833c9626426826b4b983789f2f0fae9845b;hb=6c341962648b73c935c2de26996b07332b776a1f;hp=a38d3ab61f6bac663338c03cbc0e54a212651427;hpb=9e6bf793805e6c8ded23b91b1a30a0a118a45a46;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index a38d3ab61f..93a9d833c9 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -4,7 +4,9 @@ */ use Friendica\App; use Friendica\Core\Config; +use Friendica\Core\Renderer; use Friendica\Core\System; +use Friendica\Protocol\Salmon; use Friendica\Util\Crypto; function hostxrd_init(App $a) @@ -20,12 +22,12 @@ function hostxrd_init(App $a) Config::set('system','site_pubkey', $res['pubkey']); } - $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(), - '$bigkey' => Crypto::salmonKey(Config::get('system', 'site_pubkey'))) + '$bigkey' => Salmon::salmonKey(Config::get('system', 'site_pubkey'))] ); exit();