aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-25 11:40:31 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-25 11:40:31 +0000
commit0c1b67ac3cf61daac65c15f43306ecc4d027fbdd (patch)
tree90d81e678d3a4dc2064cfa48994878652b99849a
parent7de488c47b23225ae72c1ba08a76b21481f46b78 (diff)
downloadelgg-0c1b67ac3cf61daac65c15f43306ecc4d027fbdd.tar.gz
elgg-0c1b67ac3cf61daac65c15f43306ecc4d027fbdd.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* API converted to use views system git-svn-id: https://code.elgg.org/elgg/trunk@525 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--endpoints/rest.php3
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