mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
356f4cc4bc
commit
a6824938b3
@ -367,6 +367,9 @@ JS;
|
|||||||
$files = DataObject::get("File", "`File`.ID IN ($fileList)");
|
$files = DataObject::get("File", "`File`.ID IN ($fileList)");
|
||||||
if($files) {
|
if($files) {
|
||||||
foreach($files as $file) {
|
foreach($files as $file) {
|
||||||
|
if($file instanceof Image) {
|
||||||
|
$file->deleteFormattedImages();
|
||||||
|
}
|
||||||
if( !$folderID )
|
if( !$folderID )
|
||||||
$folderID = $file->ParentID;
|
$folderID = $file->ParentID;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user