commit | c6dfcca21f5f5cb7b2572776c251683d53c669c1 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Sat Mar 10 16:16:48 2012 +0200 |
committer | Andrey Andreev <narf@bofh.bg> | Sat Mar 10 16:16:48 2012 +0200 |
tree | 102e8cd56950af1c4b5949ce30b73ef235c3085d | |
parent | 1ae651655888383a4d7f97fbf6e97a7ac00a9630 [diff] |
Really fix camelize()
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php index bbc75c7..9cf015d 100644 --- a/system/helpers/inflector_helper.php +++ b/system/helpers/inflector_helper.php
@@ -170,7 +170,7 @@ { function camelize($str) { - return ucwords(str_replace(' ', '', preg_replace('/[\s_]+/', ' ', strtolower($str)))); + return str_replace(' ', '', ucwords(preg_replace('/[\s_]+/', ' ', strtolower($str)))); } }