mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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
This commit is contained in:
parent
1b5c8ee6a8
commit
dc45dd0c25
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user