Move mod/rsd_xml to src/Module/ReallySimpleDiscovery

This commit is contained in:
Philipp Holzer 2019-05-04 21:37:32 +02:00
parent 74fda8f390
commit a1f332aaa5
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
4 changed files with 37 additions and 26 deletions

View file

@ -0,0 +1,21 @@
<?php
namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\Core\Renderer;
/**
* Prints the rsd.xml
* @see http://danielberlinger.github.io/rsd/
*/
class ReallySimpleDiscovery extends BaseModule
{
public static function rawContent()
{
header ("Content-Type: text/xml");
$tpl = Renderer::getMarkupTemplate('rsd.tpl');
echo Renderer::replaceMacros($tpl, []);
exit();
}
}