UseFileAsThumbnailException (helps support GIFs)

This commit is contained in:
Mikael Nordfeldth
2014-06-17 11:54:05 +02:00
parent 19e80a60df
commit 5a3d74d9a8
5 changed files with 60 additions and 1 deletions

View File

@@ -264,6 +264,10 @@ class ImageFile
$this->resizeToFile($outpath, $box);
}
if (!file_exists($outpath)) {
throw new UseFileAsThumbnailException($this->id);
}
return $outpath;
}