Gergő Tisza has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/289263

Change subject: Replace passCaptcha with passCaptchaFromRequest
......................................................................

Replace passCaptcha with passCaptchaFromRequest

See I47b2e2fbe3e063cd86e8a2d6bc17ca939472dbe1.

Bug: T135477
Change-Id: I14cf152e2c4f648988677fec013a81472114eab7
---
M SpecialContactFundraiser.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContactPageFundraiser 
refs/changes/63/289263/1

diff --git a/SpecialContactFundraiser.php b/SpecialContactFundraiser.php
index cab6d47..a88a596 100644
--- a/SpecialContactFundraiser.php
+++ b/SpecialContactFundraiser.php
@@ -251,10 +251,10 @@
        }
 
        function passCaptcha() {
-               global $wgCaptcha;
+               global $wgCaptcha, $wgRequest, $wgUser;
                if ( !$this->useCaptcha() ) return true;
 
-               return $wgCaptcha->passCaptcha();
+               return $wgCaptcha->passCaptchaFromRequest( $wgRequest, $wgUser 
);
        }
 
        function doSubmit( ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/289263
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I14cf152e2c4f648988677fec013a81472114eab7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContactPageFundraiser
Gerrit-Branch: master
Gerrit-Owner: Gergő Tisza <gti...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to