[Pkg-owncloud-commits] [owncloud] 07/50: OC_Image::_output() - throw exception instead of falling back to png

David Prévot taffit at moszumanska.debian.org
Fri Oct 17 03:12:11 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v6.0.6RC1
in repository owncloud.

commit c82f158c16ee23b543557caf7377c98c992fd4e0
Author: Georg Ehrke <developer at georgehrke.com>
Date:   Fri Mar 14 18:19:16 2014 +0100

    OC_Image::_output() - throw exception instead of falling back to png
---
 lib/private/image.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/image.php b/lib/private/image.php
index 0b70e36..8899c65 100644
--- a/lib/private/image.php
+++ b/lib/private/image.php
@@ -221,7 +221,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 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list