From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- extensions/ConfirmEdit/ReCaptcha.class.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'extensions/ConfirmEdit/ReCaptcha.class.php') diff --git a/extensions/ConfirmEdit/ReCaptcha.class.php b/extensions/ConfirmEdit/ReCaptcha.class.php index 59b31f47..cd274a97 100644 --- a/extensions/ConfirmEdit/ReCaptcha.class.php +++ b/extensions/ConfirmEdit/ReCaptcha.class.php @@ -81,11 +81,21 @@ class ReCaptcha extends SimpleCaptcha { return wfMessage( $name, $text )->isDisabled() ? wfMessage( 'recaptcha-edit' )->text() : $text; } - public function APIGetAllowedParams( &$module, &$params ) { + public function APIGetAllowedParams( &$module, &$params, $flags ) { + if ( $flags && $this->isAPICaptchaModule( $module ) ) { + $params['recaptcha_challenge_field'] = null; + $params['recaptcha_response_field'] = null; + } + return true; } public function APIGetParamDescription( &$module, &$desc ) { + if ( $this->isAPICaptchaModule( $module ) ) { + $desc['recaptcha_challenge_field'] = 'Field from the ReCaptcha widget'; + $desc['recaptcha_response_field'] = 'Field from the ReCaptcha widget'; + } + return true; } } -- cgit v1.2.2