Corrected thumbnail creation.

Because some systems do not allow file overwriting when doing a
rename().
This commit is contained in:
Sebastien SAUVAGE 2013-02-27 21:24:41 +01:00
parent ab7ac1870e
commit 9e8209064d

View file

@ -2336,6 +2336,7 @@ function resizeImage($filepath)
imagejpeg($im2, $tempname, 90);
imagedestroy($im);
imagedestroy($im2);
unlink($filepath);
rename($tempname,$filepath); // Overwrite original picture with thumbnail.
return true;
}