Allow wikisyntax in these messages. Makes it easier to link to help pages in tbe...
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 3 Jun 2008 16:43:11 +0000 (16:43 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 3 Jun 2008 16:43:11 +0000 (16:43 +0000)
includes/SpecialUserlogin.php

index 70323f2..57737d4 100644 (file)
@@ -856,15 +856,15 @@ class LoginForm {
 
                if ( !$this->hasSessionCookie() ) {
                        if ( $type == 'new' ) {
-                               return $this->mainLoginForm( wfMsg( 'nocookiesnew' ) );
+                               return $this->mainLoginForm( wfMsgExt( 'nocookiesnew', array( 'parseinline' ) ) );
                        } else if ( $type == 'login' ) {
-                               return $this->mainLoginForm( wfMsg( 'nocookieslogin' ) );
+                               return $this->mainLoginForm( wfMsgExt( 'nocookieslogin', array( 'parseinline' ) ) );
                        } else {
                                # shouldn't happen
                                return $this->mainLoginForm( wfMsg( 'error' ) );
                        }
                } else {
-                       return $this->successfulLogin( wfMsg( 'loginsuccess', $wgUser->getName() ) );
+                       return $this->successfulLogin( wfMsgExt( 'loginsuccess', array( 'parseinline' ), $wgUser->getName() ) );
                }
        }