diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-09 20:49:32 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-09 20:49:32 -0700 |
commit | 3dacafb7182dd915c4c6d4e7d75722976e231465 (patch) | |
tree | c2923fb97d881b9c6087d1a9c4f316eed04514dd /modules/gallery/models | |
parent | b40057283e1dfbb3bbb41a6dfc8ccc8e2111d810 (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/models')
-rw-r--r-- | modules/gallery/models/item.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index a0866934..009457c1 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -923,15 +923,12 @@ class Item_Model extends ORM_MPTT { /** * Same as ORM::as_array() but convert id fields into their RESTful form. - * Convert any item ids into REST urls - * - * @param bool preserve_ids true if we should preserve ids */ - public function as_restful_array($preserve_ids) { + public function as_restful_array($convert_ids=true) { // Convert item ids to rest URLs for consistency $data = $this->as_array(); - if (!$preserve_ids) { + if ($convert_ids) { if ($tmp = $this->parent()) { $data["parent"] = rest::url("item", $tmp); } |