mirror of
https://github.com/friendica/friendica
synced 2025-04-22 00:30:10 +00:00
Merge pull request #7091 from nupplaphil/task/mod_rsd
Move mod/rsd_xml to src/Module/ReallySimpleDiscovery
This commit is contained in:
commit
c830e4b300
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