test fixes
This commit is contained in:
parent
95ef714447
commit
d14c2ce8ea
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class Download extends Extension
|
||||||
{
|
{
|
||||||
global $page;
|
global $page;
|
||||||
|
|
||||||
$page->set_mime($event->mime);
|
$page->set_type($event->mime);
|
||||||
|
|
||||||
$page->set_mode(PageMode::FILE);
|
$page->set_mode(PageMode::FILE);
|
||||||
|
|
||||||
|
|
|
@ -319,7 +319,7 @@ class ImageIO extends Extension
|
||||||
$page->add_http_header('Expires: ' . $expires);
|
$page->add_http_header('Expires: ' . $expires);
|
||||||
}
|
}
|
||||||
|
|
||||||
send_event(new ImageDownloadingEvent($image, $file, $mime));
|
send_event(new ImageDownloadingEvent($image, $file, $image->get_mime_type()));
|
||||||
} else {
|
} else {
|
||||||
$page->set_title("Not Found");
|
$page->set_title("Not Found");
|
||||||
$page->set_heading("Not Found");
|
$page->set_heading("Not Found");
|
||||||
|
|
Reference in a new issue