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

Remove unused parameter.

parent b23a3c26
Branches
Tags
No related merge requests found
...@@ -94,11 +94,9 @@ class CommentRecord extends AbstractBase implements TranslatorAwareInterface ...@@ -94,11 +94,9 @@ class CommentRecord extends AbstractBase implements TranslatorAwareInterface
/** /**
* Is CAPTCHA valid? (Also returns true if CAPTCHA is disabled). * Is CAPTCHA valid? (Also returns true if CAPTCHA is disabled).
* *
* @param Params $params Parameter helper from controller
*
* @return bool * @return bool
*/ */
protected function checkCaptcha(Params $params) protected function checkCaptcha()
{ {
// Not enabled? Report success! // Not enabled? Report success!
if (!$this->recaptcha->active('userComments')) { if (!$this->recaptcha->active('userComments')) {
...@@ -142,7 +140,7 @@ class CommentRecord extends AbstractBase implements TranslatorAwareInterface ...@@ -142,7 +140,7 @@ class CommentRecord extends AbstractBase implements TranslatorAwareInterface
); );
} }
if (!$this->checkCaptcha($params)) { if (!$this->checkCaptcha()) {
return $this->formatResponse( return $this->formatResponse(
$this->translate('recaptcha_not_passed'), $this->translate('recaptcha_not_passed'),
self::STATUS_HTTP_FORBIDDEN 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