diff options
author | Pascal Kriete <pascal.kriete@ellislab.com> | 2010-11-10 22:05:35 +0100 |
---|---|---|
committer | Pascal Kriete <pascal.kriete@ellislab.com> | 2010-11-10 22:05:35 +0100 |
commit | c0af6c044570e0561afdea109f4101dba04e2510 (patch) | |
tree | a337017ef440e818bf469757adde6f8427b14069 | |
parent | 8adf8b03017cb0ca0c6e99ec9c1995b11f8237e6 (diff) |
removing a few php 4 workarounds from the image lib.
-rw-r--r-- | system/libraries/Image_lib.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index c9c8ced0f..dec5f34f6 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -712,14 +712,6 @@ class CI_Image_lib { */ function image_rotate_gd() { - // Is Image Rotation Supported? - // this function is only supported as of PHP 4.3 - if ( ! function_exists('imagerotate')) - { - $this->set_error('imglib_rotate_unsupported'); - return FALSE; - } - // Create the image handle if ( ! ($src_img = $this->image_create_gd())) { @@ -1215,11 +1207,6 @@ class CI_Image_lib { return FALSE; } - if (phpversion() == '4.4.1') - { - @touch($this->full_dst_path); // PHP 4.4.1 bug #35060 - workaround - } - if ( ! @imagejpeg($resource, $this->full_dst_path, $this->quality)) { $this->set_error('imglib_save_failed'); |