diff options
Diffstat (limited to 'endpoints/rest.php')
-rw-r--r-- | endpoints/rest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/endpoints/rest.php b/endpoints/rest.php index 6d4e253f8..2841ea82f 100644 --- a/endpoints/rest.php +++ b/endpoints/rest.php @@ -37,7 +37,6 @@ register_pam_handler('pam_auth_hmac'); // Get parameter variables - $format = get_input('format', 'php'); $method = get_input('method'); $result = null; @@ -59,6 +58,6 @@ throw new APIException("API Result is of an unknown type, this should never happen."); // Output the result - echo output_result($result, $format); + page_draw($method, elgg_view("api/output", array("result" => $result))); ?>
\ No newline at end of file |