summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorPreetham <me@preetham.in>2014-12-05 17:13:57 +0100
committerPreetham <me@preetham.in>2014-12-05 17:13:57 +0100
commitbe7e493fd7a4dcc8f00b60201d4948f3618d9b6a (patch)
tree91f29e5f7f2b98527f3815b3235e268627c676d7 /system/helpers
parente29136567e2a12726f9ab40762bcb47a7cde759c (diff)
Removed img_name from captcha helper
Signed-off-by: Preetham <me@preetham.in>
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/captcha_helper.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php
index a105b344b..373b1af9d 100644
--- a/system/helpers/captcha_helper.php
+++ b/system/helpers/captcha_helper.php
@@ -73,7 +73,6 @@ if ( ! function_exists('create_captcha'))
'word_length' => 8,
'font_size' => 16,
'img_id' => '',
- 'img_name' => '',
'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
'colors' => array(
'background' => array(255,255,255),
@@ -246,7 +245,7 @@ if ( ! function_exists('create_captcha'))
return FALSE;
}
- $img = '<img id="'.$img_id.'" name="'.$img_name.'" src="'.$img_url.$img_filename.'" style="width: '.$img_width.'; height: '.$img_height .'; border: 0;" alt=" " />';
+ $img = '<img '.($img_id === ''? NULL: 'id="'.$img_id.'"').' 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, 'filename' => $img_filename);