forked from Cavemanon/cavepaintings
Fixed issue with trash item detection
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user