mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-28 18:10:16 +00:00
Follow-ups to r56684: add a member function for extensions to add header text cleanly, and tweak variable names in api/ApiLogin.php.
This commit is contained in:
parent
d7ec2f9076
commit
2da3e35b51
|
@ -151,11 +151,12 @@ class SimpleCaptcha {
|
|||
wfDebug( "ConfirmEdit: user group allows skipping captcha on account creation\n" );
|
||||
return true;
|
||||
}
|
||||
$sp->mFormHeader .=
|
||||
$sp->addFormHeader(
|
||||
"<div class='captcha'>" .
|
||||
$wgOut->parse( $this->getMessage( 'createaccount' ) ) .
|
||||
$this->getForm() .
|
||||
"</div>\n";
|
||||
"</div>\n"
|
||||
);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -169,11 +170,12 @@ class SimpleCaptcha {
|
|||
function injectUserLogin( &$sp ) {
|
||||
if ( $this->isBadLoginTriggered() ) {
|
||||
global $wgOut;
|
||||
$sp->mFormHeader .=
|
||||
$sp->addFormHeader(
|
||||
"<div class='captcha'>" .
|
||||
$wgOut->parse( $this->getMessage( 'badlogin' ) ) .
|
||||
$this->getForm() .
|
||||
"</div>\n";
|
||||
"</div>\n"
|
||||
);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue