$this->getUser()->isLoggedIn()
) {
$this->successfulAction();
+ return;
}
// If logging in and not on HTTPS, either redirect to it or offer a link.
$benefitList = '';
for ( $benefitIdx = 1; $benefitIdx <= $benefitCount; $benefitIdx++ ) {
$headUnescaped = $this->msg( "createacct-benefit-head$benefitIdx" )->text();
- $iconClass = $this->msg( "createacct-benefit-icon$benefitIdx" )->escaped();
+ $iconClass = $this->msg( "createacct-benefit-icon$benefitIdx" )->text();
$benefitList .= Html::rawElement( 'div', [ 'class' => "mw-number-text $iconClass" ],
Html::rawElement( 'h3', [],
$this->msg( "createacct-benefit-head$benefitIdx" )->escaped()
if ( !$signupendMsg->isDisabled() ) {
$usingHTTPS = $this->getRequest()->getProtocol() === 'https';
$signupendText = ( $usingHTTPS && !$signupendHttpsMsg->isBlank() )
- ? $signupendHttpsMsg ->parse() : $signupendMsg->parse();
+ ? $signupendHttpsMsg->parse() : $signupendMsg->parse();
$fieldDefinitions['signupend'] = [
'type' => 'info',
'raw' => true,
];
/**
- * @param WebRequest $request
+ * @param WebRequest|null $request
*/
public function __construct( $request = null ) {
wfDeprecated( 'LoginForm', '1.27' );