diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-04 18:45:35 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-04 18:45:35 +0000 |
commit | 98714299f704936d739ad8486a4fd0053fc56ddf (patch) | |
tree | 598fbcb60623a40d9e46408b13e994c8df417f25 /views | |
parent | 93e99d5a0080f6ef89192b7d406e013a3b9fe48f (diff) | |
download | elgg-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
Diffstat (limited to 'views')
-rw-r--r-- | views/json/api/output.php | 5 |
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 |