diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-03-14 11:17:20 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2014-08-26 19:36:28 +0200 |
commit | ee8ded88b32d51c8f1507a57e66f52eaedc7cc11 (patch) | |
tree | b3e10fa31cccfc262a38e34efa5dd2a53929049c | |
parent | 3c65a503b2a555e4fee923a16dd8a2998281f2c5 (diff) | |
download | nextcloud-server-ee8ded88b32d51c8f1507a57e66f52eaedc7cc11.tar.gz nextcloud-server-ee8ded88b32d51c8f1507a57e66f52eaedc7cc11.zip |
don't change mimetype of whole image object
-rw-r--r-- | lib/private/image.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/image.php b/lib/private/image.php index b704e2828f6..5323699ccfc 100644 --- a/lib/private/image.php +++ b/lib/private/image.php @@ -206,23 +206,23 @@ class OC_Image { if($mimeType !== null) { switch($mimeType) { case 'image/gif': - $this->imageType = IMAGETYPE_GIF; + $imageType = IMAGETYPE_GIF; break; case 'image/jpeg': case 'image/pjpeg': - $this->imageType = IMAGETYPE_JPEG; + $imageType = IMAGETYPE_JPEG; break; case 'image/png': - $this->imageType = IMAGETYPE_PNG; + $imageType = IMAGETYPE_PNG; break; case 'image/x-xbitmap': - $this->imageType = IMAGETYPE_XBM; + $imageType = IMAGETYPE_XBM; break; case 'image/bmp': - $this->imageType = IMAGETYPE_BMP; + $imageType = IMAGETYPE_BMP; break; default: - $this->imageType = IMAGETYPE_PNG; + $imageType = IMAGETYPE_PNG; break; } } else { |