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

This commit is contained in:
Matthew Barbour 2020-06-16 18:40:13 -05:00 committed by Shish
parent 688fb8b04b
commit a3a3aba040

View file

@ -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");