cvs: pear /Image_Transform/Driver GD.php

From: Date: Sat, 21 Apr 2007 20:22:58 +0000
Subject: cvs: pear /Image_Transform/Driver GD.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-46070@lists.php.net to get a copy of this message
dufuz Sat Apr 21 20:22:58 2007 UTC Modified files: /pear/Image_Transform/Driver GD.php Log: match the case to other drivers http://cvs.php.net/viewvc.cgi/pear/Image_Transform/Driver/GD.php?r1=1.34&r2=1.35&diff_format=u Index: pear/Image_Transform/Driver/GD.php diff -u pear/Image_Transform/Driver/GD.php:1.34 pear/Image_Transform/Driver/GD.php:1.35 --- pear/Image_Transform/Driver/GD.php:1.34 Sat Apr 21 20:17:41 2007 +++ pear/Image_Transform/Driver/GD.php Sat Apr 21 20:22:58 2007 @@ -21,7 +21,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: GD.php,v 1.34 2007/04/21 20:17:41 dufuz Exp $ + * @version CVS: $Id: GD.php,v 1.35 2007/04/21 20:22:58 dufuz Exp $ * @link http://pear.php.net/package/Image_Transform */ @@ -247,7 +247,7 @@ $mask = imagecolorresolve($this->imageHandle, $color_mask[0], $color_mask[1], $color_mask[2]); - $this->oldImage= $this->imageHandle; + $this->oldImage = $this->imageHandle; // Multiply by -1 to change the sign, so the image is rotated clockwise $this->imageHandle = ImageRotate($this->imageHandle, $angle * -1, $mask); @@ -332,7 +332,7 @@ IMAGE_TRANSFORM_ERROR_FAILED); } - $this->oldImage= $this->imageHandle; + $this->oldImage = $this->imageHandle; $this->imageHandle = $new_img; $this->resized = true; @@ -393,7 +393,7 @@ if (!$icr_res) { ImageCopyResized($new_img, $this->imageHandle, 0, 0, 0, 0, $new_x, $new_y, $this->img_x, $this->img_y); } - $this->oldImage= $this->imageHandle; + $this->oldImage = $this->imageHandle; $this->imageHandle = $new_img; $this->resized = true; @@ -471,7 +471,7 @@ return PEAR::raiseError('Couldn\'t ' . $action, IMAGE_TRANSFORM_ERROR_IO); } - $this->imageHandle = $this->old_image; + $this->imageHandle = $this->oldImage; if (!$this->keep_settings_on_save) { $this->free(); } @@ -527,10 +527,10 @@ ImageDestroy($this->imageHandle); } $this->imageHandle = null; - if (is_resource($this->old_image)){ - ImageDestroy($this->old_image); + if (is_resource($this->oldImage)){ + ImageDestroy($this->oldImage); } - $this->oldImage= null; + $this->oldImage = null; } /**

« previous php.pear.cvs (#46070) next »