Added force flag to image deletion event to override trash extension

This commit is contained in:
Matthew Barbour
2019-06-27 13:34:25 -05:00
committed by Shish
parent 1bd9238b17
commit a82fb56063
3 changed files with 7 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ class Trash extends Extension
public function onImageDeletion(ImageDeletionEvent $event)
{
if($event->image->trash===false) {
if($event->force===false && $event->image->trash===false) {
self::set_trash($event->image->id, true);
$event->stop_processing = true;
}