mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Remove dependency to the second parameter of XML::fromArray
This commit is contained in:
parent
931ccde90d
commit
8bbf9e93c6
10 changed files with 23 additions and 35 deletions
|
@ -36,9 +36,7 @@ function oexchange_init(App $a)
|
|||
|
||||
$baseURL = DI::baseUrl()->get();
|
||||
|
||||
$xml = null;
|
||||
|
||||
XML::fromArray([
|
||||
$xmlString = XML::fromArray([
|
||||
'XRD' => [
|
||||
'@attributes' => [
|
||||
'xmlns' => 'http://docs.oasis-open.org/ns/xri/xrd-1.0',
|
||||
|
@ -90,9 +88,9 @@ function oexchange_init(App $a)
|
|||
]
|
||||
],
|
||||
],
|
||||
], $xml);
|
||||
]);
|
||||
|
||||
System::httpExit($xml->saveXML(), Response::TYPE_XML, 'application/xrd+xml');
|
||||
System::httpExit($xmlString, Response::TYPE_XML, 'application/xrd+xml');
|
||||
}
|
||||
|
||||
function oexchange_content(App $a)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue