mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #1605 incorrect lang reference in spamfilter module
This commit is contained in:
parent
0986ddf87d
commit
b2933b7ae2
1 changed files with 4 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ class spamfilter_reCAPTCHA
|
|||
$response = Context::get('g-recaptcha-response');
|
||||
if (!$response)
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('recaptcha.msg_recaptcha_invalid_response');
|
||||
throw new Rhymix\Framework\Exception('msg_recaptcha_invalid_response');
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -31,17 +31,17 @@ class spamfilter_reCAPTCHA
|
|||
}
|
||||
catch (\Requests_Exception $e)
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('recaptcha.msg_recaptcha_connection_error');
|
||||
throw new Rhymix\Framework\Exception('msg_recaptcha_connection_error');
|
||||
}
|
||||
|
||||
$verify = @json_decode($verify_request->body, true);
|
||||
if (!$verify || !$verify['success'])
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('recaptcha.msg_recaptcha_server_error');
|
||||
throw new Rhymix\Framework\Exception('msg_recaptcha_server_error');
|
||||
}
|
||||
if ($verify && isset($verify['error-codes']) && in_array('invalid-input-response', $verify['error-codes']))
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('recaptcha.msg_recaptcha_invalid_response');
|
||||
throw new Rhymix\Framework\Exception('msg_recaptcha_invalid_response');
|
||||
}
|
||||
|
||||
$_SESSION['recaptcha_authenticated'] = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue