diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2336,6 +2336,7 @@ function resizeImage($filepath) | |||
2336 | imagejpeg($im2, $tempname, 90); | 2336 | imagejpeg($im2, $tempname, 90); |
2337 | imagedestroy($im); | 2337 | imagedestroy($im); |
2338 | imagedestroy($im2); | 2338 | imagedestroy($im2); |
2339 | unlink($filepath); | ||
2339 | rename($tempname,$filepath); // Overwrite original picture with thumbnail. | 2340 | rename($tempname,$filepath); // Overwrite original picture with thumbnail. |
2340 | return true; | 2341 | return true; |
2341 | } | 2342 | } |