Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -20,14 +20,10 @@ |
21 | 21 | |
22 | 22 | # Anons don't get a watchlist |
23 | 23 | if( $wgUser->isAnon() ) { |
| 24 | + $wgOut->setPageTitle( wfMsg( 'watchnologin' ) ); |
24 | 25 | $llink = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Userlogin' ), |
25 | 26 | wfMsgHtml( 'loginreqlink' ), 'returnto=' . $specialTitle->getPrefixedUrl() ); |
26 | 27 | $wgOut->addHTML( wfMsgWikiHtml( 'watchlistanontext', $llink ) ); |
27 | | - # Add login form for convenience |
28 | | - $form = new LoginForm( $wgRequest ); |
29 | | - $form->execute(); |
30 | | - # Set page title (also LoginForm sets it too, but we prefer this one) |
31 | | - $wgOut->setPageTitle( wfMsg( 'watchnologin' ) ); |
32 | 28 | return; |
33 | 29 | } |
34 | 30 | |