summaryrefslogtreecommitdiff
path: root/modules/gallery/models/item.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-02 13:41:50 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-02 13:41:50 -0800
commit31aaf7555f51dd80cf1e97fd3c20a1c245cbf61b (patch)
tree594ca1cebbe5b8b58b4c50cb3c88487574dba712 /modules/gallery/models/item.php
parentbe5f38adea89bdb95be359aea3d97615b6b530a3 (diff)
parent3c3671cff25f28e21a702b1f665a6baa282d045f (diff)
Merge commit 'upstream/master'
Diffstat (limited to 'modules/gallery/models/item.php')
-rw-r--r--modules/gallery/models/item.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index fd121a5a..dbd56fa2 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -70,7 +70,7 @@ class Item_Model extends ORM_MPTT {
return $this->type == 'movie';
}
- public function delete() {
+ public function delete($ignored_id=null) {
if ($this->id == 1) {
$v = new Validation(array("id"));
$v->add_error("id", "cant_delete_root_album");
@@ -929,6 +929,11 @@ class Item_Model extends ORM_MPTT {
$data["album_cover"] = rest::url("item", $tmp);
}
unset($data["album_cover_item_id"]);
+
+ // Elide some internal-only data that is going to cause confusion in the client.
+ foreach (array("relative_path_cache", "relative_url_cache", "left_ptr", "right_ptr") as $key) {
+ unset($data[$key]);
+ }
return $data;
}
}