X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FWellKnown%2FHostMeta.php;h=8592dadbe7d54d18e8f11a756d7a05f9db549423;hb=4bfe0eaa33cbecb1c021713671aa2ad697904a0b;hp=fd04467f7536816a50f3c93e21d4dc99f66062f3;hpb=1b32270237d7149e3cd2c475bf453e3aa3ef73ff;p=friendica.git diff --git a/src/Module/WellKnown/HostMeta.php b/src/Module/WellKnown/HostMeta.php index fd04467f75..8592dadbe7 100644 --- a/src/Module/WellKnown/HostMeta.php +++ b/src/Module/WellKnown/HostMeta.php @@ -1,9 +1,29 @@ . + * + */ namespace Friendica\Module\WellKnown; use Friendica\BaseModule; use Friendica\Core\Renderer; +use Friendica\DI; use Friendica\Protocol\Salmon; use Friendica\Util\Crypto; @@ -13,10 +33,9 @@ use Friendica\Util\Crypto; */ class HostMeta extends BaseModule { - public static function rawContent() + public static function rawContent(array $parameters = []) { - $app = self::getApp(); - $config = $app->getConfig(); + $config = DI::config(); header('Content-type: text/xml'); @@ -29,9 +48,9 @@ class HostMeta extends BaseModule $tpl = Renderer::getMarkupTemplate('xrd_host.tpl'); echo Renderer::replaceMacros($tpl, [ - '$zhost' => $app->getHostName(), - '$zroot' => $app->getBaseURL(), - '$domain' => $app->getBaseURL(), + '$zhost' => DI::baseUrl()->getHostname(), + '$zroot' => DI::baseUrl()->get(), + '$domain' => DI::baseUrl()->get(), '$bigkey' => Salmon::salmonKey($config->get('system', 'site_pubkey')) ]);