From: Georg Ehrke Date: Fri, 14 Mar 2014 17:19:16 +0000 (+0100) Subject: OC_Image::_output() - throw exception instead of falling back to png X-Git-Tag: v7.0.0alpha2~619^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3527adbbe1ab947ca6e6edbba889539eea444915;p=nextcloud-server.git OC_Image::_output() - throw exception instead of falling back to png --- 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 {