mirror of
https://github.com/friendica/friendica
synced 2025-04-23 20:30:10 +00:00
XML class standards
updated the xml class for PSR-2
This commit is contained in:
parent
aac2258bc3
commit
ddacbf2c13
9 changed files with 210 additions and 203 deletions
|
@ -115,7 +115,7 @@ function ping_init(App $a)
|
|||
}
|
||||
} else {
|
||||
header("Content-type: text/xml");
|
||||
echo XML::from_array($data, $xml);
|
||||
echo XML::fromArray($data, $xml);
|
||||
}
|
||||
killme();
|
||||
}
|
||||
|
@ -412,7 +412,7 @@ function ping_init(App $a)
|
|||
$data = ping_format_xml_data($data, $sysnotify_count, $notifications, $sysmsgs, $sysmsgs_info, $groups_unseen, $forums_unseen);
|
||||
|
||||
header("Content-type: text/xml");
|
||||
echo XML::from_array(array("result" => $data), $xml);
|
||||
echo XML::fromArray(array("result" => $data), $xml);
|
||||
}
|
||||
|
||||
killme();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue