$this->setRobotpolicy( 'noindex,nofollow' );
$this->setArticleFlag( false );
$this->mBodytext = '';
- $this->addWikiText( wfMsg( 'loginreqtext' ) );
+ $loginpage = Title::makeTitle(NS_SPECIAL, 'Userlogin');
+ $sk = $wgUser->getSkin();
+ $loginlink = $sk->makeKnownLinkObj($loginpage, wfMsg('loginreqlink'),
+ 'returnto=' . htmlspecialchars($wgTitle->getPrefixedDBkey()));
+ $this->addHTML( wfMsgHtml( 'loginreqpagetext', $loginlink ) );
# We put a comment in the .html file so a Sysop can diagnose the page the
# user can't see.
'whitelistacctitle' => 'You are not allowed to create an account',
'whitelistacctext' => 'To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.',
'loginreqtitle' => 'Login Required',
-'loginreqtext' => 'You must [[special:Userlogin|login]] to view other pages.',
+'loginreqlink' => 'login',
+'loginreqpagetext' => 'You must $1 to view other pages.',
'accmailtitle' => 'Password sent.',
'accmailtext' => "The password for '$1' has been sent to $2.",
'newarticle' => '(New)',