summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_event.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-01-30 17:17:06 -0800
committerBharat Mediratta <bharat@menalto.com>2013-01-30 17:17:06 -0800
commitd8d01e0aa0cac2b8576ae481527d875213cdc3a7 (patch)
tree1d56ab326ae495eaefaf2ecd8d411a27552ff83f /modules/gallery/helpers/gallery_event.php
parent0ab40de11d65476454d4bf1129916a6856001002 (diff)
parentcf077425953a6a492dea97eaf1517e7d08c9648f (diff)
Merge pull request #112 from shadlaws/fix_1968
#1968 - Improve album cover generation/removal/etc.
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r--modules/gallery/helpers/gallery_event.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index bd9acc1c..ee3c51cc 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -141,10 +141,9 @@ class gallery_event_Core {
foreach (ORM::factory("item")
->where("album_cover_item_id", "=", $item->id)
->find_all() as $target) {
- copy($item->thumb_path(), $target->thumb_path());
- $target->thumb_width = $item->thumb_width;
- $target->thumb_height = $item->thumb_height;
+ $target->thumb_dirty = 1;
$target->save();
+ graphics::generate($target);
}
}