projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f419f30
)
Pman/Images.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 27 Oct 2010 07:28:16 +0000
(15:28 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 27 Oct 2010 07:28:16 +0000
(15:28 +0800)
Pman/Images.php
patch
|
blob
|
history
diff --git
a/Pman/Images.php
b/Pman/Images.php
index
4833c68
..
708ea65
100644
(file)
--- a/
Pman/Images.php
+++ b/
Pman/Images.php
@@
-126,6
+126,11
@@
class Pman_Images extends Pman
function serve($img)
{
require_once 'File/Convert.php';
+ if (!file_exists($img->getStoreName())) {
+ die("Original file was missing : " . $img->getStoreName());
+
+ }
+
$x = new File_Convert($img->getStoreName(), $img->mimetype);
if (empty($this->as_mimetype)) {
$this->as_mimetype = $img->mimetype;