summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-01-08 03:43:52 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-01-08 03:43:52 +0100
commita69bb6b9758b1568ba5ba5f48e6206bc052283cc (patch)
tree2d8ba488009ec3966206fae70dcae722612d4f0e /system
parent7d211bdc123c099d8ab2453b5ae51394a57b74d4 (diff)
parent5a67e3d09fe934af6f1bd75bb4e3dac87eb1361f (diff)
Merge pull request #875 from narfbg/develop-issue-874
Fixed issue 874
Diffstat (limited to 'system')
-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');
}