mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/11327] Use http_exception instead of trigger_error
PHPBB3-11327
This commit is contained in:
@@ -116,7 +116,10 @@ class reset_password
|
|||||||
|
|
||||||
if (!$this->config['allow_password_reset'])
|
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>'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user