Put up a more visually pleasing placeholder for items that are

missing a thumbnail.  Fixes #1591.
This commit is contained in:
Bharat Mediratta
2011-01-08 19:27:08 -08:00
parent d0df4896b0
commit 4c80ed53d2
3 changed files with 22 additions and 2 deletions

View File

@@ -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,