aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1ac5187b..4068272c 100644
--- a/index.php
+++ b/index.php
@@ -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}