// 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

View File

@@ -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.');
}
}