// Refactor AdminController::_errors to errors

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12331 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-01-11 08:58:12 +00:00
parent 3b5be15831
commit ad1fd29cea
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)