summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPreetham <me@preetham.in>2014-12-05 18:19:09 +0100
committerPreetham <me@preetham.in>2014-12-05 18:19:09 +0100
commit6157e52f1988c3640082fe6fd323ebbc07887259 (patch)
treecaf0ec55aaeea1759454912d1ecaab0ffe6aa0bd
parentbe7e493fd7a4dcc8f00b60201d4948f3618d9b6a (diff)
removing extra spaces
Signed-off-by: Preetham <me@preetham.in>
-rw-r--r--system/helpers/captcha_helper.php2
-rw-r--r--user_guide_src/source/changelog.rst2
-rw-r--r--user_guide_src/source/helpers/captcha_helper.rst2
3 files changed, 3 insertions, 3 deletions
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php
index 373b1af9d..5fa61e051 100644
--- a/system/helpers/captcha_helper.php
+++ b/system/helpers/captcha_helper.php
@@ -245,7 +245,7 @@ if ( ! function_exists('create_captcha'))
return FALSE;
}
- $img = '<img '.($img_id === ''? NULL: 'id="'.$img_id.'"').' src="'.$img_url.$img_filename.'" style="width: '.$img_width.'; height: '.$img_height .'; border: 0;" alt=" " />';
+ $img = '<img '.($img_id === '' ? '' : '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);
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index 5dc36502e..57a7dc770 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -136,7 +136,7 @@ Release Date: Not Released
- Updated to use `imagepng()` in case that `imagejpeg()` isn't available.
- Added **font_size** option to allow customization of font size.
- Added **img_id** option to set id attribute of captcha image.
-
+
- :doc:`Text Helper <helpers/text_helper>` changes include:
- Changed the default tag for use in :func:`highlight_phrase()` to ``<mark>`` (formerly ``<strong>``).
diff --git a/user_guide_src/source/helpers/captcha_helper.rst b/user_guide_src/source/helpers/captcha_helper.rst
index 6e0cfc979..4aacafd49 100644
--- a/user_guide_src/source/helpers/captcha_helper.rst
+++ b/user_guide_src/source/helpers/captcha_helper.rst
@@ -34,7 +34,7 @@ Once loaded you can generate a CAPTCHA like this::
'expiration' => 7200,
'word_length' => 8,
'font_size' => 16,
- 'img_id' => 'Image id',
+ 'img_id' => 'Imageid',
'pool' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
// White background and border, black text and red grid