X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/584e0016f2d27ea8d40e96bf9a312ad0518bd503..cc55224c919a727b16897879d7c35f54ea11aaf8:/tweeper.php?ds=sidebyside diff --git a/tweeper.php b/tweeper.php index 0034a0d..293595f 100644 --- a/tweeper.php +++ b/tweeper.php @@ -182,7 +182,7 @@ class Tweeper { return $xsltProcessor; } - private function json_to_xml($json, $rootName) { + private function json_to_xml($json, $root_node_name) { // 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, - 'xml_root_node_name' => $rootName, + 'xml_root_node_name' => $root_node_name, ); $xml_data = $serializer->serialize($data, 'xml', $serializer_options);