mirror of
https://github.com/friendica/friendica
synced 2025-04-20 06:30:10 +00:00
Merge pull request #7097 from nupplaphil/task/mod_after_PR_fixing
Fixings for Mod-Refactorings
This commit is contained in:
commit
bb8d297ae4
6 changed files with 111 additions and 52 deletions
|
@ -12,7 +12,7 @@ use Friendica\Util\Strings;
|
|||
* Creates a bookmarklet
|
||||
* Shows either a editor browser or adds the given bookmarklet to the current user
|
||||
*/
|
||||
class BookMarklet extends BaseModule
|
||||
class Bookmarklet extends BaseModule
|
||||
{
|
||||
public static function content()
|
||||
{
|
|
@ -3,7 +3,7 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
/**
|
||||
* Prints the rsd.xml
|
||||
|
@ -13,9 +13,43 @@ class ReallySimpleDiscovery extends BaseModule
|
|||
{
|
||||
public static function rawContent()
|
||||
{
|
||||
header ('Content-Type: text/xml');
|
||||
$tpl = Renderer::getMarkupTemplate('rsd.tpl');
|
||||
echo Renderer::replaceMacros($tpl);
|
||||
header('Content-Type: text/xml');
|
||||
|
||||
$app = self::getApp();
|
||||
$xml = null;
|
||||
echo XML::fromArray([
|
||||
'rsd' => [
|
||||
'@attributes' => [
|
||||
'version' => '1.0',
|
||||
'xmlns' => 'http://archipelago.phrasewise.com/rsd',
|
||||
],
|
||||
'service' => [
|
||||
'engineName' => 'Friendica',
|
||||
'engineLink' => 'http://friendica.com',
|
||||
'apis' => [
|
||||
'api' => [
|
||||
'@attributes' => [
|
||||
'name' => 'Twitter',
|
||||
'preferred' => 'true',
|
||||
'apiLink' => $app->getBaseURL(),
|
||||
'blogID' => '',
|
||||
],
|
||||
'settings' => [
|
||||
'docs' => [
|
||||
'http://status.net/wiki/TwitterCompatibleAPI',
|
||||
],
|
||||
'setting' => [
|
||||
'@attributes' => [
|
||||
'name' => 'OAuth',
|
||||
],
|
||||
'false',
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
],
|
||||
],
|
||||
], $xml);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue