]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/OpenSearch.php
Update function / rearrange tab order
[friendica.git] / src / Module / OpenSearch.php
index d5426cf3843ba33d163a18e872c489fc98539b80..7c44bc510e48e8b7570b6ea4984b105944c8d66d 100644 (file)
@@ -39,12 +39,10 @@ class OpenSearch extends BaseModule
         */
        protected function rawContent(array $request = [])
        {
-               $hostname = DI::baseUrl()->getHostname();
-               $baseUrl  = DI::baseUrl()->get();
+               $hostname = DI::baseUrl()->getHost();
+               $baseUrl  = (string)DI::baseUrl();
 
                /** @var DOMDocument $xml */
-               $xml = null;
-
                XML::fromArray([
                        'OpenSearchDescription' => [
                                '@attributes' => [