XML class standards

updated the xml class for PSR-2
This commit is contained in:
Adam Magness 2017-11-20 12:56:31 -05:00
parent aac2258bc3
commit ddacbf2c13
9 changed files with 210 additions and 203 deletions

View file

@ -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();