summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-19 00:36:40 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-19 00:36:40 -0800
commitcb7c263b470bd1452c47a3e29d67373869150d2c (patch)
tree0d41494050bd4dd1a870274c30b12730ee1227d9 /modules
parenteea936877725b9d682dc9969d0904b886c095420 (diff)
Return arrays instead of calling rest::reply.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_rest.php7
1 files changed, 3 insertions, 4 deletions
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) {