diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-02-03 17:27:40 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-02-03 23:31:58 +0100 |
commit | 46fe1f6db8395381c71e2e7fba3d1c2d979cbfbc (patch) | |
tree | f47a86b449f0169004a572fcb3f3811747cffd16 /application/controllers/file.php | |
parent | a842392c30e9ef1d1d2bd9b4eb271c3fd23b853f (diff) |
lib/Image->get: check if ob_get_clean worked
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r-- | application/controllers/file.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index 538155c55..fa34ecba9 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -564,11 +564,6 @@ class File extends MY_Controller { $img = new libraries\Image($this->mfile->file($filedata["hash"])); $img->makeThumb($thumb_size, $thumb_size); $thumb = $img->get(IMAGETYPE_JPEG); - - if ($thumb === false) { - throw new \exceptions\PublicApiException("file/thumbnail/generation-failed", "Failed to generate thumbnail"); - } - return $thumb; }); |