// Refacto of cartController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8853 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-09-28 15:40:28 +00:00
parent c26b75987e
commit ccd0383e88
6 changed files with 263 additions and 228 deletions
+2 -2
View File
@@ -131,7 +131,7 @@ class AddressControllerCore extends FrontController
$address->id_customer = (int)$this->context->customer->id;
// Check page token
if (Configuration::get('PS_TOKEN_ENABLE') == 1 && strcmp(Tools::getToken(false), Tools::getValue('token')) && $this->context->customer->isLogged(true))
if ($this->isTokenValid())
$this->errors[] = Tools::displayError('Invalid token');
// Check phone
@@ -361,7 +361,7 @@ class AddressControllerCore extends FrontController
$vat_display = 0;
$this->context->smarty->assign(array(
'vatnumber_ajax_call' => (int)file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php'),
'vatnumber_ajax_call' => file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php'),
'vat_display' => $vat_display,
));
}