diff --git a/module/VuFind/src/VuFind/AjaxHandler/CommentRecord.php b/module/VuFind/src/VuFind/AjaxHandler/CommentRecord.php index 50c66b7db2bab648a8f6afeed4b95815d29037b5..7cb271109c46a5ee6f69cc71b8f4f2c768613414 100644 --- a/module/VuFind/src/VuFind/AjaxHandler/CommentRecord.php +++ b/module/VuFind/src/VuFind/AjaxHandler/CommentRecord.php @@ -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