summaryrefslogtreecommitdiffstats
path: root/system/libraries/Image_lib.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-01-07 00:06:34 +0100
committerAndrey Andreev <narf@bofh.bg>2012-01-07 00:06:34 +0100
commit1a9f52c8ec021f6169b977ee936bb8cf2b972230 (patch)
tree7f13cb04063035af6675b92663069178f2b03d97 /system/libraries/Image_lib.php
parent9252d7bf2208d351aad4292cb79c509391f0313f (diff)
Fixed a bug in CI_Image_lib::resize()
Diffstat (limited to 'system/libraries/Image_lib.php')
-rw-r--r--system/libraries/Image_lib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php
index c86224ffb..39f9887f1 100644
--- a/system/libraries/Image_lib.php
+++ b/system/libraries/Image_lib.php
@@ -392,7 +392,7 @@ class CI_Image_lib {
*/
public function resize()
{
- $protocol = (strtolower(substr($this->image_library, 0, -3)) === 'gd2') ? 'image_process_gd' : 'image_process_'.$this->image_library;
+ $protocol = ($this->image_library === 'gd2') ? 'image_process_gd' : 'image_process_'.$this->image_library;
return $this->$protocol('resize');
}