// 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:
@@ -96,10 +96,10 @@ class AdminGeolocationControllerCore extends AdminController
|
||||
$redirectAdmin = true;
|
||||
}
|
||||
else
|
||||
$this->_errors[] = Tools::displayError('Geolocation database is unavailable.');
|
||||
$this->errors[] = Tools::displayError('Geolocation database is unavailable.');
|
||||
|
||||
if (!is_array(Tools::getValue('countries')) || !count(Tools::getValue('countries')))
|
||||
$this->_errors[] = Tools::displayError('Country selection is invalid');
|
||||
$this->errors[] = Tools::displayError('Country selection is invalid');
|
||||
else
|
||||
{
|
||||
Configuration::updateValue(
|
||||
@@ -112,7 +112,7 @@ class AdminGeolocationControllerCore extends AdminController
|
||||
}
|
||||
|
||||
if (!Validate::isCleanHtml(Tools::getValue('PS_GEOLOCATION_WHITELIST')))
|
||||
$this->_errors[] = Tools::displayError('Invalid whitelist');
|
||||
$this->errors[] = Tools::displayError('Invalid whitelist');
|
||||
else
|
||||
{
|
||||
Configuration::updateValue(
|
||||
|
||||
Reference in New Issue
Block a user