Merge pull request #7091 from nupplaphil/task/mod_rsd

Move mod/rsd_xml to src/Module/ReallySimpleDiscovery
This commit is contained in:
Hypolite Petovan 2019-05-05 08:30:06 -04:00 committed by GitHub
commit c830e4b300
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();
}
}