From 98714299f704936d739ad8486a4fd0053fc56ddf Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 4 Feb 2009 18:45:35 +0000 Subject: API results now JSON export properly. Refs #716 git-svn-id: https://code.elgg.org/elgg/trunk@2651 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/json/api/output.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'views/json/api') 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 -- cgit v1.2.3