summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/item_rest.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-09 20:49:32 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-09 20:49:32 -0700
commit3dacafb7182dd915c4c6d4e7d75722976e231465 (patch)
treec2923fb97d881b9c6087d1a9c4f316eed04514dd /modules/gallery/helpers/item_rest.php
parentb40057283e1dfbb3bbb41a6dfc8ccc8e2111d810 (diff)
Revert the "preserve_ids" global query parameter. We decided that it was a
bad idea. This reverts commit 6425d41eddd44091b2d83ba3c3734cc6990ca581.
Diffstat (limited to 'modules/gallery/helpers/item_rest.php')
-rw-r--r--modules/gallery/helpers/item_rest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/helpers/item_rest.php b/modules/gallery/helpers/item_rest.php
index 1d19d9f1..c88f92d9 100644
--- a/modules/gallery/helpers/item_rest.php
+++ b/modules/gallery/helpers/item_rest.php
@@ -78,10 +78,9 @@ class item_rest_Core {
}
$orm->order_by($order_by);
- $preserve_ids = isset($p->preserve_ids) ? (bool)$p->preserve_ids : false;
$result = array(
"url" => $request->url,
- "entity" => $item->as_restful_array($preserve_ids),
+ "entity" => $item->as_restful_array(),
"relationships" => rest::relationships("item", $item));
if ($item->is_album()) {
$result["members"] = array();