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
@ -348,7 +348,7 @@ class ImageIO extends Extension
|
|||||||
$page->add_http_header('Expires: ' . $expires);
|
$page->add_http_header('Expires: ' . $expires);
|
||||||
}
|
}
|
||||||
|
|
||||||
send_event(new ImageDownloadingEvent($image, $file, $image->get_mime()));
|
send_event(new ImageDownloadingEvent($image, $file, $mime));
|
||||||
} else {
|
} else {
|
||||||
$page->set_title("Not Found");
|
$page->set_title("Not Found");
|
||||||
$page->set_heading("Not Found");
|
$page->set_heading("Not Found");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user