summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-01-08 03:55:10 +0100
committerAndrey Andreev <narf@bofh.bg>2012-01-08 03:55:10 +0100
commit92849d9cc553693a3eda5efb6a648187f6ce6064 (patch)
tree0db3a78bad3fc342742f258e6bdf2d9c15b516bd /system/libraries
parentd350d13446faf41d6c0301d34760ba475efd7f49 (diff)
parent83a2581a5e7c1ae855cb3d6605fec8b3fdb3f1bf (diff)
Merge remote-tracking branch 'upstream/develop' into develop-db-oci8
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Image_lib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php
index c86224ffb..dc7d362ce 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');
}
@@ -408,7 +408,7 @@ class CI_Image_lib {
*/
public function crop()
{
- $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('crop');
}