X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FOpenSearch.php;h=24e039ca835cf635ed94a5e9721c098aff8e81eb;hb=ab5a447bc2261522d0f5560f8933dd928a6fc6e3;hp=89cf53055d1d2f6b90efb99ec22d88950e2c48b5;hpb=abe6724629b851c6cce965a0aa03658b9dae8c62;p=friendica.git diff --git a/src/Module/OpenSearch.php b/src/Module/OpenSearch.php index 89cf53055d..24e039ca83 100644 --- a/src/Module/OpenSearch.php +++ b/src/Module/OpenSearch.php @@ -1,10 +1,30 @@ . + * + */ namespace Friendica\Module; use DOMDocument; use DOMElement; use Friendica\BaseModule; +use Friendica\DI; use Friendica\Util\XML; /** @@ -16,12 +36,12 @@ class OpenSearch extends BaseModule /** * @throws \Exception */ - public static function rawContent($parameters) + public static function rawContent(array $parameters = []) { header('Content-type: application/opensearchdescription+xml'); - $hostname = self::getApp()->getHostName(); - $baseUrl = self::getApp()->getBaseURL(); + $hostname = DI::baseUrl()->getHostname(); + $baseUrl = DI::baseUrl()->get(); /** @var DOMDocument $xml */ $xml = null;