aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-27 01:54:52 -0700
committerFriendika <info@friendika.com>2011-10-27 01:54:52 -0700
commitabe96155b42f0f824d05d08126d0ced0d3c5ab38 (patch)
tree895905f32e79c1a46e7f124b667458ea4d02dc14 /include/api.php
parent31502207bd8361a5fa27cb10ea037e4cca5a5678 (diff)
downloadvolse-hubzilla-abe96155b42f0f824d05d08126d0ced0d3c5ab38.tar.gz
volse-hubzilla-abe96155b42f0f824d05d08126d0ced0d3c5ab38.tar.bz2
volse-hubzilla-abe96155b42f0f824d05d08126d0ced0d3c5ab38.zip
hmmm - why won't poco xml work
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/api.php b/include/api.php
index 1334d8eae..d94cc2942 100644
--- a/include/api.php
+++ b/include/api.php
@@ -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;