X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fhostxrd.php;h=93a9d833c9626426826b4b983789f2f0fae9845b;hb=3fc5c1ad840f98926319478a855dab3686a0ace3;hp=16f132fe092ff2a871fcc3a0e15fe67cffbe84c6;hpb=26b335ef3d8b1ec4e1b4e22cd7d3c34e66d2549d;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index 16f132fe09..93a9d833c9 100644 --- a/mod/hostxrd.php +++ b/mod/hostxrd.php @@ -4,6 +4,7 @@ */ use Friendica\App; use Friendica\Core\Config; +use Friendica\Core\Renderer; use Friendica\Core\System; use Friendica\Protocol\Salmon; use Friendica\Util\Crypto; @@ -21,9 +22,9 @@ function hostxrd_init(App $a) Config::set('system','site_pubkey', $res['pubkey']); } - $tpl = get_markup_template('xrd_host.tpl'); - echo replace_macros($tpl, [ - '$zhost' => $a->get_hostname(), + $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'))]