Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -20,10 +20,14 @@ |
21 | 21 | |
22 | 22 | # Anons don't get a watchlist |
23 | 23 | if( $wgUser->isAnon() ) { |
24 | | - $wgOut->setPageTitle( wfMsg( 'watchnologin' ) ); |
25 | 24 | $llink = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Userlogin' ), |
26 | 25 | wfMsgHtml( 'loginreqlink' ), 'returnto=' . $specialTitle->getPrefixedUrl() ); |
27 | 26 | $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' ) ); |
28 | 32 | return; |
29 | 33 | } |
30 | 34 | |