hmmm - why won't poco xml work

This commit is contained in:
Friendika 2011-10-27 01:54:52 -07:00
parent 31502207bd
commit abe96155b4
5 changed files with 26 additions and 27 deletions

View file

@ -404,14 +404,6 @@
return $ret;
}
/**
* apply xmlify() to all values of array $val, recursively
*/
function api_xmlify($val){
if (is_bool($val)) return $val?"true":"false";
if (is_array($val)) return array_map('api_xmlify', $val);
return xmlify((string) $val);
}
/**
* load api $templatename for $type and replace $data array
@ -424,7 +416,7 @@
case "atom":
case "rss":
case "xml":
$data = api_xmlify($data);
$data = array_xmlify($data);
$tpl = get_markup_template("api_".$templatename."_".$type.".tpl");
$ret = replace_macros($tpl, $data);
break;