From a6824938b3ca207e6d2e27d3babe298bd0b95311 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 01:29:38 +0000 Subject: [PATCH] mujma: Added deleting of image thumbnails after delete operation. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41899 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/AssetAdmin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index 7cd9d800..b6fb3864 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -367,6 +367,9 @@ JS; $files = DataObject::get("File", "`File`.ID IN ($fileList)"); if($files) { foreach($files as $file) { + if($file instanceof Image) { + $file->deleteFormattedImages(); + } if( !$folderID ) $folderID = $file->ParentID;