// 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
@@ -327,7 +327,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
}
}
else
$this->_errors[] = '<div class="alert error">'.Tools::displayError('Email invalid.').'</div>';
$this->errors[] = '<div class="alert error">'.Tools::displayError('Email invalid.').'</div>';
}
if (Tools::isSubmit('submitReply'))
{
@@ -338,7 +338,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
$cm->message = Tools::htmlentitiesutf8(Tools::nl2br(Tools::getValue('reply_message')));
$cm->ip_address = ip2long($_SERVER['REMOTE_ADDR']);
if (isset($_FILES) && !empty($_FILES['joinFile']['name']) && $_FILES['joinFile']['error'] != 0)
$this->_errors[] = Tools::displayError('An error occurred with the file upload.');
$this->errors[] = Tools::displayError('An error occurred with the file upload.');
else if ($cm->add())
{
$file_attachment = null;
@@ -371,7 +371,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
);
}
else
$this->_errors[] = Tools::displayError('An error occurred, your message was not sent. Please contact your system administrator.');
$this->errors[] = Tools::displayError('An error occurred, your message was not sent. Please contact your system administrator.');
}
}