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

This commit is contained in:
Damien Metzger
2013-09-16 11:42:11 +02:00
parent 08efa4e313
commit e68c124218
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -425,6 +425,7 @@ class AuthControllerCore extends FrontController
if (Tools::isSubmit('newsletter'))
$this->processCustomerNewsletter($customer);
$customer->firstname = Tools::ucwords($customer->firstname);
$customer->birthday = (empty($_POST['years']) ? '' : (int)$_POST['years'].'-'.(int)$_POST['months'].'-'.(int)$_POST['days']);
if (!Validate::isBirthDate($customer->birthday))
$this->errors[] = Tools::displayError('Invalid date of birth.');