Fixed issue with trash item detection
This commit is contained in:
parent
c4111cc948
commit
558d154e85
@ -67,7 +67,7 @@ class Trash extends Extension
|
|||||||
|
|
||||||
public function onImageDeletion(ImageDeletionEvent $event)
|
public function onImageDeletion(ImageDeletionEvent $event)
|
||||||
{
|
{
|
||||||
if($event->force===false && $event->image->trash===false) {
|
if($event->force!==true && $event->image->trash!==true) {
|
||||||
self::set_trash($event->image->id, true);
|
self::set_trash($event->image->id, true);
|
||||||
$event->stop_processing = true;
|
$event->stop_processing = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user