diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-29 21:38:55 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-29 21:38:55 +0100 |
commit | 44dbc7826dc34c86829b734fcec0015271b7873f (patch) | |
tree | 223614f070da2f3d00e594725aa750189fefb2e3 /system/libraries | |
parent | 1c8dd3ad67bfa8da796bc0ebbfdf72be8d5bafb1 (diff) |
Fixed a bug (#3024) in which master_dim wasn't getting reset by clear() in the Image library.
Documented clear()
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Image_lib.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index 260075ecd..dbb6f82e0 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -110,7 +110,10 @@ class CI_Image_lib { foreach ($props as $val)
{
$this->$val = '';
- }
+ }
+
+ // special consideration for master_dim
+ $this->master_dim = 'auto';
}
// --------------------------------------------------------------------
@@ -497,12 +500,6 @@ class CI_Image_lib { }
// Create The Image
- //
- // old conditional which users report cause problems with shared GD libs who report themselves as "2.0 or greater"
- // it appears that this is no longer the issue that it was in 2004, so we've removed it, retaining it in the comment
- // below should that ever prove inaccurate.
- //
- // if ($this->image_library == 'gd2' AND function_exists('imagecreatetruecolor') AND $v2_override == FALSE)
if ($this->image_library == 'gd2' AND function_exists('imagecreatetruecolor'))
{
$create = 'imagecreatetruecolor';
@@ -692,7 +689,7 @@ class CI_Image_lib { // we have to rename the temp file.
copy ($this->dest_folder.'netpbm.tmp', $this->full_dst_path);
unlink ($this->dest_folder.'netpbm.tmp');
- @chmod($this->full_dst_path, 0777);
+ @chmod($dst_image, 0777);
return TRUE;
}
|