1
0
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:
Marc Alexander 2019-09-01 11:36:57 +02:00
parent 8048d817ca
commit f920336be4
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

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