diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-07-17 16:58:15 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-17 16:58:15 -0700 |
| commit | bb981bb7b60d6b0155b73bbb37edb25f2f207ec0 (patch) | |
| tree | b4dd91a42f3da07fae42c64aeb3d49f46e6ebc6a /modules/gallery/helpers/item.php | |
| parent | e7c6861507ea7ca01d3d4ed7b4189c030c8d07b3 (diff) | |
| parent | cd907c2b42f8b50ebe6d490aab42365e16deb258 (diff) | |
Merge branch 'master' of git@github.com:/gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/item.php')
| -rw-r--r-- | modules/gallery/helpers/item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php index f40b5c97..80c25862 100644 --- a/modules/gallery/helpers/item.php +++ b/modules/gallery/helpers/item.php @@ -53,7 +53,7 @@ class item_Core { access::required("view", $parent); access::required("edit", $parent); - model_cache::clear("item", $parent->album_cover_item_id); + model_cache::clear(); $parent->album_cover_item_id = $item->is_album() ? $item->album_cover_item_id : $item->id; $parent->thumb_dirty = 1; $parent->save(); @@ -69,7 +69,7 @@ class item_Core { access::required("edit", $album); @unlink($album->thumb_path()); - model_cache::clear("item", $album->album_cover_item_id) ; + model_cache::clear(); $album->album_cover_item_id = null; $album->thumb_width = 0; $album->thumb_height = 0; |
