test fixes

This commit is contained in:
Shish 2020-06-24 17:32:06 +01:00
parent 95ef714447
commit d14c2ce8ea
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ class Download extends Extension
{
global $page;
$page->set_mime($event->mime);
$page->set_type($event->mime);
$page->set_mode(PageMode::FILE);

View file

@ -319,7 +319,7 @@ class ImageIO extends Extension
$page->add_http_header('Expires: ' . $expires);
}
send_event(new ImageDownloadingEvent($image, $file, $mime));
send_event(new ImageDownloadingEvent($image, $file, $image->get_mime_type()));
} else {
$page->set_title("Not Found");
$page->set_heading("Not Found");