X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhostxrd.php;h=93a9d833c9626426826b4b983789f2f0fae9845b;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=30343381c393c9ff119c4cc637a93bf121a17ac1;hpb=4ae37c61966a7f4c055369ee8fd0d4bc20808fdb;p=friendica.git diff --git a/mod/hostxrd.php b/mod/hostxrd.php index 30343381c3..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,8 +22,8 @@ function hostxrd_init(App $a) Config::set('system','site_pubkey', $res['pubkey']); } - $tpl = get_markup_template('xrd_host.tpl'); - echo replace_macros($tpl, [ + $tpl = Renderer::getMarkupTemplate('xrd_host.tpl'); + echo Renderer::replaceMacros($tpl, [ '$zhost' => $a->getHostName(), '$zroot' => System::baseUrl(), '$domain' => System::baseUrl(),