From 0c1b67ac3cf61daac65c15f43306ecc4d027fbdd Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 25 Apr 2008 11:40:31 +0000 Subject: Marcus Povey * API converted to use views system git-svn-id: https://code.elgg.org/elgg/trunk@525 36083f99-b078-4883-b0ff-0f9b5a30f544 --- endpoints/rest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'endpoints') 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 -- cgit v1.2.3