summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-08-10 23:11:36 +0200
committerAndrey Andreev <narf@devilix.net>2014-08-10 23:11:36 +0200
commit09546edca0645af6002caa00a2f9b7eaaae38f17 (patch)
treed3883307d669ef07c89e71ef149142b6b2935a67
parent8aedf238c1b6f5fec953830f4c5a1eca65fe0b73 (diff)
Polish changes following PR #3173
-rw-r--r--system/helpers/captcha_helper.php8
-rw-r--r--user_guide_src/source/changelog.rst2
2 files changed, 5 insertions, 5 deletions
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
{
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index c37215d2d..2ed2275ac 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -137,7 +137,7 @@ Release Date: Not Released
- Added *word_length* and *pool* options to allow customization of the generated word.
- Added *colors* configuration to allow customization for the *background*, *border*, *text* and *grid* colors.
- Added *filename* to the returned array elements.
- - Using ImagePNG function, if ImageJPEG not exists.
+ - Updated to use `imagepng()` in case that `imagejpeg()` isn't available.
- :doc:`Text Helper <helpers/text_helper>` changes include: