diff options
author | Andrey Andreev <narf@devilix.net> | 2013-10-21 13:44:57 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-10-21 13:44:57 +0200 |
commit | 72b4b3cbc71d2c266938b8878baba11c11c565ca (patch) | |
tree | 21ed1c7a99dad3ddfb224858f7291165fb7dfa6d /system | |
parent | 7f5f8aaa01764f266b41791568863ec6bfda7e83 (diff) |
Add 'filename' to the return elements for create_captcha() (PR #2602)
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/captcha_helper.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php index ea46f97b3..24cd53568 100644 --- a/system/helpers/captcha_helper.php +++ b/system/helpers/captcha_helper.php @@ -215,12 +215,12 @@ if ( ! function_exists('create_captcha')) // ----------------------------------- // Generate the image // ----------------------------------- - $img_name = $now.'.jpg'; - ImageJPEG($im, $img_path.$img_name); - $img = '<img src="'.$img_url.$img_name.'" style="width: '.$img_width.'; height: '.$img_height .'; border: 0;" alt=" " />'; + $img_filename = $now.'.jpg'; + ImageJPEG($im, $img_path.$img_filename); + $img = '<img src="'.$img_url.$img_filename.'" style="width: '.$img_width.'; height: '.$img_height .'; border: 0;" alt=" " />'; ImageDestroy($im); - return array('word' => $word, 'time' => $now, 'image' => $img); + return array('word' => $word, 'time' => $now, 'image' => $img, 'filename' => $img_filename); } } |