// Refactor AdminController::_errors to errors
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user