mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-12-17 18:30:55 +00:00
Fix some indenting and whitespace
Change-Id: Ib2c21563f823c6d31a71a94562f808cd2fca3782
This commit is contained in:
parent
f390c92b98
commit
74eb713da9
|
@ -109,7 +109,7 @@ class MathCaptcha extends SimpleCaptcha {
|
||||||
$req = AuthenticationRequest::getRequestByClass(
|
$req = AuthenticationRequest::getRequestByClass(
|
||||||
$requests,
|
$requests,
|
||||||
CaptchaAuthenticationRequest::class,
|
CaptchaAuthenticationRequest::class,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if ( !$req ) {
|
if ( !$req ) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -87,13 +87,14 @@ class QuestyCaptcha extends SimpleCaptcha {
|
||||||
'required',
|
'required',
|
||||||
'autocomplete' => 'off',
|
'autocomplete' => 'off',
|
||||||
// tab in before the edit textarea
|
// tab in before the edit textarea
|
||||||
'tabindex' => $tabIndex ] ) .
|
'tabindex' => $tabIndex ]
|
||||||
"</p>\n" .
|
) . "</p>\n" .
|
||||||
Xml::element( 'input', [
|
Xml::element( 'input', [
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
'name' => 'wpCaptchaId',
|
'name' => 'wpCaptchaId',
|
||||||
'id' => 'wpCaptchaId',
|
'id' => 'wpCaptchaId',
|
||||||
'value' => $index ] )
|
'value' => $index ]
|
||||||
|
)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,10 +85,10 @@ HTML;
|
||||||
// API is hardwired to return captchaWord, so use that if the standard isempty
|
// API is hardwired to return captchaWord, so use that if the standard isempty
|
||||||
// "captchaWord" is sent as "captchaword" by visual editor
|
// "captchaWord" is sent as "captchaword" by visual editor
|
||||||
$index = 'not used';
|
$index = 'not used';
|
||||||
$response = $request->getVal( 'g-recaptcha-response',
|
$response = $request->getVal(
|
||||||
$request->getVal( 'captchaWord',
|
'g-recaptcha-response',
|
||||||
$request->getVal( 'captchaword' )
|
$request->getVal( 'captchaWord', $request->getVal( 'captchaword' ) )
|
||||||
) );
|
);
|
||||||
return [ $index, $response ];
|
return [ $index, $response ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue