// Refactor AdminController::_errors to errors

This commit is contained in:
tDidierjean
2012-01-11 08:58:12 +00:00
parent 9a607a1610
commit 8a757aaa9c
68 changed files with 857 additions and 859 deletions
+3 -3
View File
@@ -109,13 +109,13 @@ class AdminContactControllerCore extends AdminController
AND `id_state` = '.(int)Tools::getValue('PS_SHOP_STATE_ID');
$isStateOk = Db::getInstance()->getValue($sql);
if ($isStateOk != 1)
$this->_errors[] = Tools::displayError('This state is not in this country.');
$this->errors[] = Tools::displayError('This state is not in this country.');
}
}
public function updateOptionPsShopCountryId($value)
{
if (!$this->_errors && $value)
if (!$this->errors && $value)
{
$country = new Country($value, $this->context->language->id);
if ($country->id)
@@ -128,7 +128,7 @@ class AdminContactControllerCore extends AdminController
public function updateOptionPsShopStateId($value)
{
if (!$this->_errors && $value)
if (!$this->errors && $value)
{
$state = new State($value);
if ($state->id)