commit | e40c763bf969acbaa7c4c61be50f01e870062080 | [log] [tgz] |
---|---|---|
author | Phil Sturgeon <email@philsturgeon.co.uk> | Sat Mar 10 13:05:08 2012 +0000 |
committer | Phil Sturgeon <email@philsturgeon.co.uk> | Sat Mar 10 13:05:08 2012 +0000 |
tree | 4970da3ceaef5592dae5cb007a740b0686a40482 | |
parent | 5d3e04ec80ca3b485dfee272d9f6c142c38042af [diff] [blame] |
Fixed camelize.
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php index 02c425b..5acfd6b 100644 --- a/system/helpers/inflector_helper.php +++ b/system/helpers/inflector_helper.php
@@ -173,7 +173,7 @@ { 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); } }