added $lowercase parameter to url_title() to allow forced lowercase
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php
index fd13dc2..9b449ea 100644
--- a/system/helpers/url_helper.php
+++ b/system/helpers/url_helper.php
@@ -471,7 +471,7 @@
*/
if ( ! function_exists('url_title'))
{
- function url_title($str, $separator = 'dash')
+ function url_title($str, $separator = 'dash', $lowercase = FALSE)
{
if ($separator == 'dash')
{
@@ -501,6 +501,11 @@
$str = preg_replace("#".$key."#i", $val, $str);
}
+ if ($lowercase === TRUE)
+ {
+ $str = strtolower($str);
+ }
+
return trim(stripslashes($str));
}
}