mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +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(
|
||||
$requests,
|
||||
CaptchaAuthenticationRequest::class,
|
||||
true
|
||||
true
|
||||
);
|
||||
if ( !$req ) {
|
||||
return;
|
||||
|
|
|
@ -87,13 +87,14 @@ class QuestyCaptcha extends SimpleCaptcha {
|
|||
'required',
|
||||
'autocomplete' => 'off',
|
||||
// tab in before the edit textarea
|
||||
'tabindex' => $tabIndex ] ) .
|
||||
"</p>\n" .
|
||||
'tabindex' => $tabIndex ]
|
||||
) . "</p>\n" .
|
||||
Xml::element( 'input', [
|
||||
'type' => 'hidden',
|
||||
'name' => '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
|
||||
// "captchaWord" is sent as "captchaword" by visual editor
|
||||
$index = 'not used';
|
||||
$response = $request->getVal( 'g-recaptcha-response',
|
||||
$request->getVal( 'captchaWord',
|
||||
$request->getVal( 'captchaword' )
|
||||
) );
|
||||
$response = $request->getVal(
|
||||
'g-recaptcha-response',
|
||||
$request->getVal( 'captchaWord', $request->getVal( 'captchaword' ) )
|
||||
);
|
||||
return [ $index, $response ];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue