]> git.mjollnir.org Git - s9y.git/commitdiff
fix thumbnail deletoin
authorgarvinhicking <garvinhicking>
Tue, 28 Feb 2006 18:28:48 +0000 (18:28 +0000)
committergarvinhicking <garvinhicking>
Tue, 28 Feb 2006 18:28:48 +0000 (18:28 +0000)
docs/NEWS
include/functions_images.inc.php

index 62fab50e4ad46e6e3a61dabce30fdd3c4c8dc3d7..9f6bff1c1d3895ba39c705bdf522862dc0bc6744 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -36,6 +36,8 @@ Version 1.1-alpha1()
 Version 1.0-beta2 ()
 ------------------------------------------------------------------------
 
+   * Fix also deleting thumbnail when removing an image (garvinhicking)
+
    * Added new competition theme winner by Carl Galloway
 
    * Enable Spamblock plugin to allow registered authors to not enter
index a382354c952ace9c41655959b5cefde9df3ee9f5..f997aee6acaf1709ee30779cbfa639027b168971 100644 (file)
@@ -195,7 +195,7 @@ function serendipity_deleteImage($id) {
 
             serendipity_plugin_api::hook_event('backend_media_delete', $dThumb);
             foreach($dThumb as $thumb) {
-                $dfnThumb = $file['path'] . $file['name'] . (!empty($dThumb['fthumb']) ? '.' . $dThumb['fthumb'] : '') . '.' . $file['extension'];
+                $dfnThumb = $file['path'] . $file['name'] . (!empty($thumb['fthumb']) ? '.' . $thumb['fthumb'] : '') . '.' . $file['extension'];
                 $dfThumb  = $serendipity['serendipityPath'] . $serendipity['uploadPath'] . $dfnThumb;
 
                 if (@unlink($dfThumb)) {