From cb7c263b470bd1452c47a3e29d67373869150d2c Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 19 Jan 2010 00:36:40 -0800 Subject: Return arrays instead of calling rest::reply. --- modules/gallery/helpers/gallery_rest.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/gallery/helpers/gallery_rest.php b/modules/gallery/helpers/gallery_rest.php index 24733f20..7f93bd38 100644 --- a/modules/gallery/helpers/gallery_rest.php +++ b/modules/gallery/helpers/gallery_rest.php @@ -91,7 +91,7 @@ class gallery_rest_Core { $members[] = url::abs_site("rest/gallery/" . $child->relative_url()); } - return rest::reply(array("resource" => $item->as_array(), "members" => $members)); + return array("resource" => $item->as_array(), "members" => $members); } static function put($request) { @@ -112,7 +112,7 @@ class gallery_rest_Core { } $item->save(); - return rest::reply(array("url" => url::abs_site("/rest/gallery/" . $item->relative_url()))); + return array("url" => url::abs_site("/rest/gallery/" . $item->relative_url())); } static function post($request) { @@ -146,7 +146,7 @@ class gallery_rest_Core { throw new Rest_Exception("Invalid type: $args->type", 400); } - return rest::reply(array("url" => url::abs_site("/rest/gallery/" . $item->relative_url()))); + return array("url" => url::abs_site("/rest/gallery/" . $item->relative_url())); } static function delete($request) { @@ -154,7 +154,6 @@ class gallery_rest_Core { access::required("edit", $item); $item->delete(); - return rest::reply(); } static function resolve($path) { -- cgit v1.2.3