1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

XML client/server communication protocol fixes

This commit is contained in:
secretr
2008-11-21 16:28:04 +00:00
parent c3729f0ee2
commit da8d98c3c8

View File

@@ -7,8 +7,8 @@
* GNU General Public License (http://gnu.org). * GNU General Public License (http://gnu.org).
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/js_helper.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/js_helper.php,v $
* $Revision: 1.2 $ * $Revision: 1.3 $
* $Date: 2008-11-17 17:43:57 $ * $Date: 2008-11-21 16:28:04 $
* $Author: secretr $ * $Author: secretr $
* *
*/ */
@@ -76,7 +76,8 @@ class e_jshelper
function buildXMLResponse() function buildXMLResponse()
{ {
$action_array = $this->getResponseActions(true); $action_array = $this->getResponseActions(true);
$ret = "<e107response>\n"; $ret = '<?xml version="1.0" encoding="'.CHARSET.'" ?>';
$ret .= "\n<e107response>\n";
foreach ($action_array as $action => $field_array) foreach ($action_array as $action => $field_array)
{ {
$ret .= "\t<e107action name='{$action}'>\n"; $ret .= "\t<e107action name='{$action}'>\n";