From c7c3d075bc6ade9248fc474c25b2a2c608ffb2b5 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 15 Oct 2012 07:21:01 +0000 Subject: [PATCH] //small fix when enter number in name when install prestashop --- install-dev/controllers/http/configure.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-dev/controllers/http/configure.php b/install-dev/controllers/http/configure.php index a562d3da0..ff7160ca6 100644 --- a/install-dev/controllers/http/configure.php +++ b/install-dev/controllers/http/configure.php @@ -75,10 +75,10 @@ class InstallControllerHttpConfigure extends InstallControllerHttp $this->errors['shop_name'] = $this->l('Invalid shop name'); // Check admin name - if ($this->session->admin_firstname && !Validate::isGenericName($this->session->admin_firstname)) + if ($this->session->admin_firstname && !Validate::isName($this->session->admin_firstname)) $this->errors['admin_firstname'] = $this->l('Your firstname contains some invalid characters'); - if ($this->session->admin_lastname && !Validate::isGenericName($this->session->admin_lastname)) + if ($this->session->admin_lastname && !Validate::isName($this->session->admin_lastname)) $this->errors['admin_lastname'] = $this->l('Your lastname contains some invalid characters'); // Check passwords