// Fix Tools::toCamelCase()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13156 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user