summaryrefslogtreecommitdiffstats
path: root/system/helpers/inflector_helper.php
diff options
context:
space:
mode:
authorMike Funk <mfunk@xulonpress.com>2012-03-19 14:51:28 +0100
committerMike Funk <mfunk@xulonpress.com>2012-03-19 14:51:28 +0100
commit1ce0c424dd33d3b72ee61f5b812802ec0f073880 (patch)
treed5405ead3cdccbf115a601df0fb03b2d5e46a45e /system/helpers/inflector_helper.php
parent994105cb45eba44b62bab41dfce76582b34c6913 (diff)
parent7eea3064af3be5dd0b526056211a510f90a40766 (diff)
merged with latest develop.
Diffstat (limited to 'system/helpers/inflector_helper.php')
-rw-r--r--system/helpers/inflector_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php
index 9cf015d2b..485806b20 100644
--- a/system/helpers/inflector_helper.php
+++ b/system/helpers/inflector_helper.php
@@ -170,7 +170,7 @@ if ( ! function_exists('camelize'))
{
function camelize($str)
{
- return str_replace(' ', '', ucwords(preg_replace('/[\s_]+/', ' ', strtolower($str))));
+ return strtolower($str[0]).substr(str_replace(' ', '', ucwords(preg_replace('/[\s_]+/', ' ', $str))), 1);
}
}