aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 18:45:35 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-04 18:45:35 +0000
commit98714299f704936d739ad8486a4fd0053fc56ddf (patch)
tree598fbcb60623a40d9e46408b13e994c8df417f25
parent93e99d5a0080f6ef89192b7d406e013a3b9fe48f (diff)
downloadelgg-98714299f704936d739ad8486a4fd0053fc56ddf.tar.gz
elgg-98714299f704936d739ad8486a4fd0053fc56ddf.tar.bz2
API results now JSON export properly. Refs #716
git-svn-id: https://code.elgg.org/elgg/trunk@2651 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--views/json/api/output.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/json/api/output.php b/views/json/api/output.php
index d34bd57b3..cb86a12db 100644
--- a/views/json/api/output.php
+++ b/views/json/api/output.php
@@ -15,5 +15,8 @@
$result = $vars['result'];
$export = $result->export();
- echo json_encode($export);
+ // echo json_encode($export);
+ global $jsonexport;
+ $jsonexport['api'][] = $export;
+
?> \ No newline at end of file