diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-29 19:00:03 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-29 19:00:03 +0100 |
commit | 878cd70078c579f6c0ce8ad2e311518c8a688d17 (patch) | |
tree | 333d8f4e2dd33c04019f998ed5095d3f51d65e06 /system/libraries/Image_lib.php | |
parent | 0975bcc8d56392af3d07f1e2af941b727d6dc389 (diff) |
Fixed a bug (#2858) which referenced a wrong variable in the Image class.
Diffstat (limited to 'system/libraries/Image_lib.php')
-rw-r--r-- | system/libraries/Image_lib.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index 9a78adf62..239865b9d 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -473,7 +473,9 @@ class CI_Image_lib { // If the target width/height match the source, AND if
// the new file name is not equal to the old file name
// we'll simply make a copy of the original with the new name
- if (($this->orig_width == $this->width AND $this->orig_height == $this->height) AND ($this->source_image != $this->dest_image))
+ if (($this->orig_width == $this->width AND $this->orig_height == $this->height) AND ($this->source_image != $this->new_image))
+
+
{
if ( ! @copy($this->full_src_path, $this->full_dst_path))
{
|