OC_Image::_output() - throw exception instead of falling back to png
This commit is contained in:
parent
9dee3772eb
commit
3527adbbe1
|
@ -217,7 +217,7 @@ class OC_Image {
|
||||||
$imageType = IMAGETYPE_BMP;
|
$imageType = IMAGETYPE_BMP;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$imageType = IMAGETYPE_PNG;
|
throw new Exception('\OC_Image::_output(): "' . $mimeType . '" is not supported when forcing a specific output format');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue