Permalink
Browse files

fix(web_services): no longer uses deprecated export global

Web services API now outputs json encoded string rather than relying on a deprecated $jsonexport global
  • Loading branch information...
hypeJunction committed Jun 23, 2015
1 parent 8d43d21 commit 3a818d2b6c70e170937854be42f43cb496449f62
Showing with 1 addition and 6 deletions.
  1. +1 −6 mod/web_services/views/json/api/output.php
@@ -9,9 +9,4 @@
$result = $vars['result'];
$export = $result->export();
global $jsonexport;
// with api calls, we don't want extra baggage found in other json views
// so we skip the associative array
$jsonexport = $export;
echo json_encode($export);

0 comments on commit 3a818d2

Please sign in to comment.