// validateControler is now deprecated

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8158 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fBrignoli
2011-08-23 08:58:07 +00:00
parent 6d414e45c5
commit 7e1ac5572e
4 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -83,13 +83,13 @@ class AuthControllerCore extends FrontController
$_POST['firstname'] = $_POST['customer_firstname'];
if (!Tools::getValue('phone') AND !Tools::getValue('phone_mobile'))
$this->errors[] = Tools::displayError('You must register at least one phone number');
$this->errors = array_unique(array_merge($this->errors, $customer->validateControler()));
$this->errors = array_unique(array_merge($this->errors, $customer->validateController()));
/* Preparing address */
$address = new Address();
$_POST['lastname'] = $lastnameAddress;
$_POST['firstname'] = $firstnameAddress;
$address->id_customer = 1;
$this->errors = array_unique(array_merge($this->errors, $address->validateControler()));
$this->errors = array_unique(array_merge($this->errors, $address->validateController()));
/* US customer: normalize the address */
if($address->id_country == Country::getByIso('US'))