cvs: pear /Image_Transform/Driver IM.php
| From: | Philippe Jausions | Date: | Wed, 01 Mar 2006 17:22:02 +0000 |
| Subject: | cvs: pear /Image_Transform/Driver IM.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38800@lists.php.net to get a copy of this message | ||
jausions Wed Mar 1 17:22:02 2006 UTC
Modified files:
/pear/Image_Transform/Driver IM.php
Log:
Fixed bug #6976 about defaulting image type in display() method
http://cvs.php.net/viewcvs.cgi/pear/Image_Transform/Driver/IM.php?r1=1.23&r2=1.24&diff_format=u
Index: pear/Image_Transform/Driver/IM.php
diff -u pear/Image_Transform/Driver/IM.php:1.23 pear/Image_Transform/Driver/IM.php:1.24
--- pear/Image_Transform/Driver/IM.php:1.23 Thu Apr 28 03:56:25 2005
+++ pear/Image_Transform/Driver/IM.php Wed Mar 1 17:22:02 2006
@@ -19,7 +19,7 @@
* @author Philippe Jausions <Philippe.Jausions@11abacus.com>
* @copyright 2002-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: IM.php,v 1.23 2005/04/28 03:56:25 jausions Exp $
+ * @version CVS: $Id: IM.php,v 1.24 2006/03/01 17:22:02 jausions Exp $
* @link http://pear.php.net/package/Image_Transform
*/
@@ -367,7 +367,7 @@
*/
function display($type = '', $quality = null)
{
- $type = strtoupper(($type == '') ? $type : $this->type);
+ $type = strtoupper(($type == '') ? $this->type : $type);
switch ($type) {
case 'JPEG':
$type = 'JPG';