mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 01:20:40 +01:00
[ticket/11327] Use http_exception instead of trigger_error
PHPBB3-11327
This commit is contained in:
parent
8048d817ca
commit
f920336be4
@ -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…
x
Reference in New Issue
Block a user