/**
* Convert json to xml.
*/
- private function jsonToXml($json, $root_node_name) {
+ private static function jsonToXml($json, $root_node_name) {
// Apparently 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.
return NULL;
}
- return $this->jsonToXml($matches[1], 'instagram');
+ return Tweeper::jsonToXml($matches[1], 'instagram');
}
/**