diff options
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/changelog.html | 5 | ||||
-rw-r--r-- | user_guide/helpers/url_helper.html | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index b87e61ba8..613c4e65d 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -71,6 +71,11 @@ Change Log <li>Further improved MIME type detection in the <a href="libraries/file_uploading.html">File Uploading Library</a>.</li> </ul> </li> + <li>Helpers + <ul> + <li><samp>url_title()</samp> performance and output improved. You can now use any string as the word delimiter. Backwards compatible with 'dash' or 'underscore' as words delimiters.</li> + </ul> + </li> </ul> <h3>Bug fixes for 2.1.1</h3> diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html index 76ec32ab2..c23c5ac92 100644 --- a/user_guide/helpers/url_helper.html +++ b/user_guide/helpers/url_helper.html @@ -231,11 +231,11 @@ $url_title = url_title($title);<br /> </code> -<p>The second parameter determines the word delimiter. By default dashes are used. Options are: <dfn>dash</dfn>, or <dfn>underscore</dfn>:</p> +<p>The second parameter determines the word delimiter. By default dashes are used.</p> <code>$title = "What's wrong with CSS?";<br /> <br /> -$url_title = url_title($title, 'underscore');<br /> +$url_title = url_title($title, '_');<br /> <br /> // Produces: Whats_wrong_with_CSS </code> @@ -244,7 +244,7 @@ $url_title = url_title($title, 'underscore');<br /> <code>$title = "What's wrong with CSS?";<br /> <br /> -$url_title = url_title($title, 'underscore', TRUE);<br /> +$url_title = url_title($title, '_', TRUE);<br /> <br /> // Produces: whats_wrong_with_css </code> |