Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-03-14 21:19:16 +0400
committerGeorg Ehrke <developer@georgehrke.com>2014-03-14 21:19:16 +0400
commit3527adbbe1ab947ca6e6edbba889539eea444915 (patch)
tree4903949b7ab0e504564d4ed27822f4d4d70ad42a /lib
parent9dee3772eb3c46a7a23efc83d77da6c5a3aba030 (diff)
OC_Image::_output() - throw exception instead of falling back to png
Diffstat (limited to 'lib')
-rw-r--r--lib/private/image.php2
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 {