diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-01-08 19:27:08 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-08 19:27:08 -0800 |
commit | 4c80ed53d2a3fa3392d2da61c730b6d30de9f2be (patch) | |
tree | 27b8d89c6eae5c6ff678f10af86332c411b8af8f /modules/organize/controllers | |
parent | d0df4896b0c96099709b10fa8cbb7d15a4f20461 (diff) |
Put up a more visually pleasing placeholder for items that are
missing a thumbnail. Fixes #1591.
Diffstat (limited to 'modules/organize/controllers')
-rw-r--r-- | modules/organize/controllers/organize.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index 62417525..bffc52f7 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -63,7 +63,7 @@ class Organize_Controller extends Controller { $dims = $child->scale_dimensions(120); $data["children"][] = array( "id" => $child->id, - "thumb_url" => $child->thumb_url(), + "thumb_url" => $child->has_thumb() ? $child->thumb_url() : null, "width" => $dims[1], "height" => $dims[0], "type" => $child->type, |