cleaner error for dead thumbs
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@681 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
48f7c326f4
commit
918a85e721
@ -244,6 +244,11 @@ class ImageIO extends Extension {
|
||||
$file = $image->get_image_filename();
|
||||
}
|
||||
|
||||
if(!file_exists($file)) {
|
||||
print("Can't read $file");
|
||||
exit;
|
||||
}
|
||||
|
||||
$page->set_data(file_get_contents($file));
|
||||
|
||||
if(isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user