diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-02 13:44:37 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-02 13:44:37 -0700 |
| commit | aea34882b4121176a04d2eadba54aedccda5c08a (patch) | |
| tree | a85c6e211b5803175d93e08724966be418ed4ce5 /modules/gallery/helpers/photo.php | |
| parent | f2bbb2963a03c7f838772fa89facc0e38c3e4f4e (diff) | |
| parent | 417c983491a7708a1d60e909caead239ef02eadd (diff) | |
Merge branch 'master' into talmdal
Diffstat (limited to 'modules/gallery/helpers/photo.php')
| -rw-r--r-- | modules/gallery/helpers/photo.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gallery/helpers/photo.php b/modules/gallery/helpers/photo.php index 96a66d29..40b645a2 100644 --- a/modules/gallery/helpers/photo.php +++ b/modules/gallery/helpers/photo.php @@ -111,9 +111,11 @@ class photo_Core { // Build our thumbnail/resizes. If we fail to build thumbnail/resize we assume that the image // is bad in some way and discard it. - if (!graphics::generate($photo)) { + try { + graphics::generate($photo); + } catch (Exception $e) { $photo->delete(); - throw new Exception("@todo BAD_IMAGE_FILE"); + throw $e; } // If the parent has no cover item, make this it. |
