mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-26 05:08:52 +00:00
[ticket/11327] Use http_exception instead of trigger_error
PHPBB3-11327
This commit is contained in:
parent
8048d817ca
commit
f920336be4
1 changed files with 4 additions and 1 deletions
|
@ -116,7 +116,10 @@ class reset_password
|
|||
|
||||
if (!$this->config['allow_password_reset'])
|
||||
{
|
||||
trigger_error($this->language->lang('UCP_PASSWORD_RESET_DISABLED', '<a href="mailto:' . htmlspecialchars($this->config['board_contact']) . '">', '</a>'));
|
||||
throw new http_exception(Response::HTTP_OK, 'UCP_PASSWORD_RESET_DISABLED', [
|
||||
'<a href="mailto:' . htmlspecialchars($this->config['board_contact']) . '">',
|
||||
'</a>'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue