$this->getUser()->isLoggedIn()
) {
$this->successfulAction();
+ return;
}
// If logging in and not on HTTPS, either redirect to it or offer a link.
// 'id' => 'mw-userlogin-help', // FIXME HTMLInfoField ignores this
'raw' => true,
'default' => Html::element( 'a', [
- 'href' => Skin::makeInternalOrExternalUrl( wfMessage( 'helplogin-url' )
+ 'href' => Skin::makeInternalOrExternalUrl( $this->msg( 'helplogin-url' )
->inContentLanguage()
->text() ),
], $this->msg( 'userlogin-helplink2' )->text() ),
];
/**
- * @param WebRequest $request
+ * @param WebRequest|null $request
*/
public function __construct( $request = null ) {
wfDeprecated( 'LoginForm', '1.27' );