// Fix Tools::toCamelCase()

This commit is contained in:
rMalie
2012-02-09 09:13:11 +00:00
parent 464d00c449
commit 9c863b3707
+1 -1
View File
@@ -1381,7 +1381,7 @@ class ToolsCore
$str = strtolower($str);
if ($capitaliseFirstChar)
$str = ucfirst($str);
return preg_replace_callback('/_([a-z])/', create_function('$c', 'return strtoupper($c[1]);'), $str);
return preg_replace_callback('/_+([a-z])/', create_function('$c', 'return strtoupper($c[1]);'), $str);
}
/**