// Fix Tools::toCamelCase()
This commit is contained in:
1 parent
13fa90f707
commit
927059af90
1 file changed
+1
-1
+1
-1
@@ -1381,7 +1381,7 @@ class ToolsCore
|
|||||||
$str = strtolower($str);
|
$str = strtolower($str);
|
||||||
if ($capitaliseFirstChar)
|
if ($capitaliseFirstChar)
|
||||||
$str = ucfirst($str);
|
$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user