diff options
author | shadlaws <shad@shadlaws.com> | 2013-01-31 17:18:39 +0100 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-01-31 17:18:39 +0100 |
commit | f83ed5f8716663a45c9d8e8118bbcf0e2849c3fb (patch) | |
tree | b4182b14160868ae1e6043ee1302d3ccf0bcdf68 /modules/gallery/helpers/item.php | |
parent | e17c39386b9d322f9bafd8b548ec6b94a7c5f7b5 (diff) |
#1982 - Add placeholder for albums with no album cover.
- Added missing_album_cover.jpg placeholder image.
- Modified the graphics helper to use it. Calling graphics::generate will copy it.
- Modified item::remove_album_cover and gallery_event::item_created to run graphics::generate.
- Added unit test to Graphics_Helper_Test.
Diffstat (limited to 'modules/gallery/helpers/item.php')
-rw-r--r-- | modules/gallery/helpers/item.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php index 975d46e5..9882a9c5 100644 --- a/modules/gallery/helpers/item.php +++ b/modules/gallery/helpers/item.php @@ -113,6 +113,7 @@ class item_Core { model_cache::clear(); $album->album_cover_item_id = null; $album->save(); + graphics::generate($album); } /** |