From dc45dd0c25fdf784ab7d60c52ee1e7bcf78c5424 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 20:30:54 +0000 Subject: [PATCH] mujma: Added deleting thumbnails after moving a photo. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41924 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 b6fb3864..1aae1641 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -319,6 +319,9 @@ HTML; $files = DataObject::get("File", "`File`.ID IN ($fileList)"); if($files) { foreach($files as $file) { + if($file instanceof Image) { + $file->deleteFormattedImages(); + } $file->ParentID = $destFolderID; $file->write(); $numFiles++;