Bugfix in file extension detection
This commit is contained in:
parent
0f1b1f8320
commit
b05b2ededc
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ function getPreview($imgFile, $maxSize = THUMB_SIZE)
|
||||||
|
|
||||||
if (! is_file($newImgFile))
|
if (! is_file($newImgFile))
|
||||||
{
|
{
|
||||||
$ext = strtolower(substr($file, -4));
|
$ext = strtolower(substr($imgFile, -4));
|
||||||
if ($ext == ".jpg")
|
if ($ext == ".jpg")
|
||||||
$img = imagecreatefromjpeg($imgFile);
|
$img = imagecreatefromjpeg($imgFile);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue