Implement functions
implement functions relocated to xml class
This commit is contained in:
@@ -15,6 +15,7 @@ use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Protocol\PortableContact;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function poco_init(App $a) {
|
||||
$system_mode = false;
|
||||
@@ -375,7 +376,7 @@ function poco_init(App $a) {
|
||||
|
||||
if ($format === 'xml') {
|
||||
header('Content-type: text/xml');
|
||||
echo Renderer::replaceMacros(Renderer::getMarkupTemplate('poco_xml.tpl'), array_xmlify(['$response' => $ret]));
|
||||
echo Renderer::replaceMacros(Renderer::getMarkupTemplate('poco_xml.tpl'), XML::arrayXmlify(['$response' => $ret]));
|
||||
killme();
|
||||
}
|
||||
if ($format === 'json') {
|
||||
|
||||
Reference in New Issue
Block a user