From da37e93a917447fee4fa485b2c64f5a340d240af Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Tue, 28 Feb 2006 18:28:48 +0000 Subject: [PATCH] fix thumbnail deletoin --- docs/NEWS | 2 ++ include/functions_images.inc.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/NEWS b/docs/NEWS index 62fab50..9f6bff1 100644 --- 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 diff --git a/include/functions_images.inc.php b/include/functions_images.inc.php index a382354..f997aee 100644 --- a/include/functions_images.inc.php +++ b/include/functions_images.inc.php @@ -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)) { -- 2.39.5