diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-10 15:16:48 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-10 15:16:48 +0100 |
commit | c6dfcca21f5f5cb7b2572776c251683d53c669c1 (patch) | |
tree | 102e8cd56950af1c4b5949ce30b73ef235c3085d /system/helpers/inflector_helper.php | |
parent | 1ae651655888383a4d7f97fbf6e97a7ac00a9630 (diff) |
Really fix camelize()
Diffstat (limited to 'system/helpers/inflector_helper.php')
-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 bbc75c747..9cf015d2b 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 ucwords(str_replace(' ', '', preg_replace('/[\s_]+/', ' ', strtolower($str)))); + return str_replace(' ', '', ucwords(preg_replace('/[\s_]+/', ' ', strtolower($str)))); } } |