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:
parent
688fb8b04b
commit
a3a3aba040
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Reference in a new issue