From 09546edca0645af6002caa00a2f9b7eaaae38f17 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 11 Aug 2014 00:11:36 +0300 Subject: Polish changes following PR #3173 --- system/helpers/captcha_helper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'system/helpers') diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php index 36a53749f..f4ed6168f 100644 --- a/system/helpers/captcha_helper.php +++ b/system/helpers/captcha_helper.php @@ -217,15 +217,15 @@ if ( ! function_exists('create_captcha')) // ----------------------------------- $img_url = rtrim($img_url, '/').'/'; - if (function_exists('ImageJPEG')) + if (function_exists('imagejpeg')) { $img_filename = $now.'.jpg'; - ImageJPEG($im, $img_path.$img_filename); + imagejpeg($im, $img_path.$img_filename); } - elseif (function_exists('ImagePNG')) + elseif (function_exists('imagepng')) { $img_filename = $now.'.png'; - ImagePNG($im, $img_path.$img_filename); + imagepng($im, $img_path.$img_filename); } else { -- cgit v1.2.3-24-g4f1b