From fe72ba25d0f45d988d831108302e04f4ac4243a7 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 30 Jan 2023 23:31:20 +0000 Subject: [PATCH] set source during upload using SourceSetEvent --- ext/image/main.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/image/main.php b/ext/image/main.php index cb6db534..a73be90c 100644 --- a/ext/image/main.php +++ b/ext/image/main.php @@ -183,10 +183,7 @@ class ImageIO extends Extension $tags_to_set = $image->get_tag_array(); $image->tag_array = []; send_event(new TagSetEvent($image, $tags_to_set)); - - if ($image->source !== null) { - log_info("core-image", "Source for >>{$image->id} set to: {$image->source}"); - } + send_event(new SourceSetEvent($image, $image->source)); } catch (ImageAdditionException $e) { throw new UploadException($e->error); }