From a3a3aba0404e671cce139708ccd5add2afd295c2 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Tue, 16 Jun 2020 18:40:13 -0500 Subject: [PATCH] Added ImageDownloadingEvent that allows extensions to stop a user from viewing an image or perform other operations on the image before the image is downloaded to the user --- ext/image/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/image/main.php b/ext/image/main.php index d30752cb..51ce3284 100644 --- a/ext/image/main.php +++ b/ext/image/main.php @@ -348,7 +348,7 @@ class ImageIO extends Extension $page->add_http_header('Expires: ' . $expires); } - send_event(new ImageDownloadingEvent($image, $file, $image->get_mime())); + send_event(new ImageDownloadingEvent($image, $file, $mime)); } else { $page->set_title("Not Found"); $page->set_heading("Not Found");