Polish changes following PR #3173
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php
index 36a5374..f4ed616 100644
--- a/system/helpers/captcha_helper.php
+++ b/system/helpers/captcha_helper.php
@@ -217,15 +217,15 @@
// -----------------------------------
$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
{