X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FReallySimpleDiscovery.php;h=8d6a6ff3c282bed97127812cacf9dcecdadb52c0;hb=53e38b03130ea798bba44db44ccb7f331dc4b91d;hp=515285dbfcd070b1ba2417b9021d73c55c1ad35d;hpb=c1f99c70b1c7d62120723f3b142e843ba25ab338;p=friendica.git diff --git a/src/Module/ReallySimpleDiscovery.php b/src/Module/ReallySimpleDiscovery.php index 515285dbfc..8d6a6ff3c2 100644 --- a/src/Module/ReallySimpleDiscovery.php +++ b/src/Module/ReallySimpleDiscovery.php @@ -1,8 +1,28 @@ . + * + */ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\DI; use Friendica\Util\XML; /** @@ -11,11 +31,10 @@ use Friendica\Util\XML; */ class ReallySimpleDiscovery extends BaseModule { - public static function rawContent() + public static function rawContent(array $parameters = []) { header('Content-Type: text/xml'); - $app = self::getApp(); $xml = null; echo XML::fromArray([ 'rsd' => [ @@ -31,7 +50,7 @@ class ReallySimpleDiscovery extends BaseModule '@attributes' => [ 'name' => 'Twitter', 'preferred' => 'true', - 'apiLink' => $app->getBaseURL(), + 'apiLink' => DI::baseUrl()->get(), 'blogID' => '', ], 'settings' => [