Permalink
Browse files

Change to thumb generation.

  • Loading branch information...
1 parent f52dff2 commit 35be0e8656636a4b0c05eb638cba1a81dcb11940 @frankmullenger committed Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/product/ProductImage.php
@@ -62,7 +62,7 @@ function SummaryOfImage() {
*/
function fortemplate() {
$image = $this->Image();
- if ($image && $image->exists()) return $image->CroppedImage(40,40)->forTemplate();
- else return '(No Image)';
+ $thumb = ($image && $image->exists()) ? $image->CroppedImage(40,40) : '(No Image)';
+ return $thumb;
}
}

0 comments on commit 35be0e8

Please sign in to comment.