[-] FO : replace ucfirst by ucwords for the customer firstname #PSCFV-10396

This commit is contained in:
Damien Metzger
2013-09-16 11:40:29 +02:00
parent 08efa4e313
commit e68c124218
3 changed files with 9 additions and 1 deletions
+7
View File
@@ -1260,6 +1260,13 @@ class ToolsCore
return Tools::strtoupper(Tools::substr($str, 0, 1)).Tools::substr($str, 1);
}
public static function ucwords($str)
{
if (function_exists('mb_convert_case'))
return mb_convert_case($str, MB_CASE_TITLE);
return ucwords(strtolower($str));
}
public static function orderbyPrice(&$array, $order_way)
{
foreach ($array as &$row)