diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-10 14:05:08 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-10 14:05:08 +0100 |
commit | e40c763bf969acbaa7c4c61be50f01e870062080 (patch) | |
tree | 4970da3ceaef5592dae5cb007a740b0686a40482 /system/helpers | |
parent | 5d3e04ec80ca3b485dfee272d9f6c142c38042af (diff) |
Fixed camelize.
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/inflector_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php index 02c425b8a..5acfd6bc5 100644 --- a/system/helpers/inflector_helper.php +++ b/system/helpers/inflector_helper.php @@ -173,7 +173,7 @@ if ( ! function_exists('camelize')) { function camelize($str) { - return substr(str_replace(' ', '', ucwords(preg_replace('/[\s_]+/', ' ', $str))), 1); + return strtolower($str[0]).substr(str_replace(' ', '', ucwords(preg_replace('/[\s_]+/', ' ', $str))), 1); } } |