From afb3f302411c36a1190542b75ef4f0216173a8ac Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Mon, 9 Jul 2018 11:12:18 -0400 Subject: [PATCH] Remove unused parameter. --- module/VuFind/src/VuFind/AjaxHandler/CommentRecord.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/VuFind/src/VuFind/AjaxHandler/CommentRecord.php b/module/VuFind/src/VuFind/AjaxHandler/CommentRecord.php index 50c66b7db2b..7cb271109c4 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 -- GitLab