projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
584e001
)
tweeper.php: rename $rootName to $root_node_name
author
Antonio Ospite <ao2@ao2.it>
Mon, 16 May 2016 11:12:22 +0000
(13:12 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 08:55:09 +0000
(10:55 +0200)
tweeper.php
patch
|
blob
|
history
diff --git
a/tweeper.php
b/tweeper.php
index
0034a0d
..
293595f
100644
(file)
--- a/
tweeper.php
+++ b/
tweeper.php
@@
-182,7
+182,7
@@
class Tweeper {
return $xsltProcessor;
}
return $xsltProcessor;
}
- private function json_to_xml($json, $root
N
ame) {
+ private function json_to_xml($json, $root
_node_n
ame) {
// Apparenty the ObjectNormalizer used afterwards is not able to handle
// the stdClass object created by json_decode() with the default setting
// $assoc = false; so use $assoc = true
// Apparenty the ObjectNormalizer used afterwards is not able to handle
// the stdClass object created by json_decode() with the default setting
// $assoc = false; so use $assoc = true
@@
-198,7
+198,7
@@
class Tweeper {
$serializer_options = array (
'xml_encoding' => "UTF-8",
'xml_format_output' => TRUE,
$serializer_options = array (
'xml_encoding' => "UTF-8",
'xml_format_output' => TRUE,
- 'xml_root_node_name' => $root
N
ame,
+ 'xml_root_node_name' => $root
_node_n
ame,
);
$xml_data = $serializer->serialize($data, 'xml', $serializer_options);
);
$xml_data = $serializer->serialize($data, 'xml', $serializer_options);