From 75ea7ad6ea63faecc4d028afc1882e75a863033d Mon Sep 17 00:00:00 2001 From: skakadiya47 Date: Wed, 8 Apr 2015 22:06:23 +0530 Subject: [PATCH] Fixed thumbnail issue --- lib/model/doctrine/Photo.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/model/doctrine/Photo.class.php b/lib/model/doctrine/Photo.class.php index b5e3e58..94fe23c 100644 --- a/lib/model/doctrine/Photo.class.php +++ b/lib/model/doctrine/Photo.class.php @@ -153,11 +153,11 @@ public function generateThumbnail($value) { $big_photo_height = 369; $middle_photo_width = 96; $middle_photo_height = 138; - + $uploadDir = sfConfig::get ( 'sf_upload_dir' ); if(file_exists($uploadDir . '/photo/original/' . $value)) { - $uploadDir = sfConfig::get ( 'sf_upload_dir' ); + $img_small = new sfImage( $uploadDir . '/photo/original/' . $value,null); $img_middle = new sfImage( $uploadDir . '/photo/original/' . $value,null); $img_big = new sfImage( $uploadDir . '/photo/original/' . $value,null);