mirror of
https://github.com/friendica/friendica
synced 2025-04-22 04:30:10 +00:00
Move mod/rsd_xml to src/Module/ReallySimpleDiscovery
This commit is contained in:
parent
74fda8f390
commit
a1f332aaa5
4 changed files with 37 additions and 26 deletions
21
src/Module/ReallySimpleDiscovery.php
Normal file
21
src/Module/ReallySimpleDiscovery.php
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue