X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=blobdiff_plain;f=index.php;h=b9b7309b8c7e3988f52fcd3456aef2d4ba9d660f;hp=db2a5903f21a24752330ba7dae942073cd369a43;hb=b05b2ededc697c0eebab40e6d4df2cd617c97cd4;hpb=0f1b1f83207b59b9109d3fd09b3710bc8bc1f06d diff --git a/index.php b/index.php index db2a590..b9b7309 100644 --- a/index.php +++ b/index.php @@ -9,7 +9,7 @@ function getPreview($imgFile, $maxSize = THUMB_SIZE) if (! is_file($newImgFile)) { - $ext = strtolower(substr($file, -4)); + $ext = strtolower(substr($imgFile, -4)); if ($ext == ".jpg") $img = imagecreatefromjpeg($imgFile); else