diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-03-14 21:19:16 +0400 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2014-03-14 21:19:16 +0400 |
commit | 3527adbbe1ab947ca6e6edbba889539eea444915 (patch) | |
tree | 4903949b7ab0e504564d4ed27822f4d4d70ad42a /lib | |
parent | 9dee3772eb3c46a7a23efc83d77da6c5a3aba030 (diff) |
OC_Image::_output() - throw exception instead of falling back to png
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/image.php b/lib/private/image.php index 4aa14be109c..1cd7399cce1 100644 --- a/lib/private/image.php +++ b/lib/private/image.php @@ -217,7 +217,7 @@ class OC_Image { $imageType = IMAGETYPE_BMP; break; default: - $imageType = IMAGETYPE_PNG; + throw new Exception('\OC_Image::_output(): "' . $mimeType . '" is not supported when forcing a specific output format'); break; } } else { |