EllisLab/CodeIgniter — Issue #874: Latest merges in Image_lib.php produce an error
Author: vkeranov
Created: 2012-01-06 18:58:48+00:00
State: open

Before (worked well):

function resize()
{
$protocol = 'image_process_'.$this->image_library;

if (preg_match('/gd2$/i', $protocol))
{
$protocol = 'image_process_gd';
}

return $this->$protocol('resize');
}

Now (produce an error):

public function resize()
{
$protocol = (strtolower(substr($this->image_library, 0, -3)) === 'gd2') ? 'image_process_gd' : 'image_process_'.$this->image_library;
return $this->$protocol('resize');
}

And this is the error I get:

Fatal error: Call to undefined method CI_Image_lib::image_process_gd2() in \system\libraries\Image_lib.php on line 360