The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit afb3f302 authored by Demian Katz's avatar Demian Katz
Browse files

Remove unused parameter.

parent b23a3c26
No related merge requests found
......@@ -94,11 +94,9 @@ class CommentRecord extends AbstractBase implements TranslatorAwareInterface
/**
* Is CAPTCHA valid? (Also returns true if CAPTCHA is disabled).
*
* @param Params $params Parameter helper from controller
*
* @return bool
*/
protected function checkCaptcha(Params $params)
protected function checkCaptcha()
{
// Not enabled? Report success!
if (!$this->recaptcha->active('userComments')) {
......@@ -142,7 +140,7 @@ class CommentRecord extends AbstractBase implements TranslatorAwareInterface
);
}
if (!$this->checkCaptcha($params)) {
if (!$this->checkCaptcha()) {
return $this->formatResponse(
$this->translate('recaptcha_not_passed'),
self::STATUS_HTTP_FORBIDDEN
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment