X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FReallySimpleDiscovery.php;h=d699455f470ad7f6fab2a98084f5711265082a71;hb=d15ebb6fd381e94c6f8eefd223df4c5a709ed3fc;hp=43fdcf102c81d3c5f6e19cdc560384579e76e072;hpb=1de3f186d79f3703850524c1d58c237be3eb25f3;p=friendica.git diff --git a/src/Module/ReallySimpleDiscovery.php b/src/Module/ReallySimpleDiscovery.php index 43fdcf102c..d699455f47 100644 --- a/src/Module/ReallySimpleDiscovery.php +++ b/src/Module/ReallySimpleDiscovery.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; @@ -12,11 +31,10 @@ use Friendica\Util\XML; */ class ReallySimpleDiscovery extends BaseModule { - public static function rawContent(array $parameters = []) + protected function rawContent(array $request = []) { header('Content-Type: text/xml'); - $app = DI::app(); $xml = null; echo XML::fromArray([ 'rsd' => [ @@ -32,7 +50,7 @@ class ReallySimpleDiscovery extends BaseModule '@attributes' => [ 'name' => 'Twitter', 'preferred' => 'true', - 'apiLink' => $app->getBaseURL(), + 'apiLink' => DI::baseUrl()->get(), 'blogID' => '', ], 'settings' => [