From af1abceb0efc9416c51a2156ab984bb7d7ff0da3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 7 Jan 2009 01:49:32 +0000 Subject: [PATCH] Reverting r45363 "(bug 15320) Show login page if not logged in (for watchlist)" 1) Behavior should be consistent; we don't do this anywhere else. 2) We want to be able to consolidate the login form to a secure location, which this would prevent. Reverting and resolving WONTFIX. --- includes/specials/SpecialWatchlist.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 9c9c1620e7..61dd6b3eea 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -20,14 +20,10 @@ function wfSpecialWatchlist( $par ) { # Anons don't get a watchlist if( $wgUser->isAnon() ) { + $wgOut->setPageTitle( wfMsg( 'watchnologin' ) ); $llink = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Userlogin' ), wfMsgHtml( 'loginreqlink' ), 'returnto=' . $specialTitle->getPrefixedUrl() ); $wgOut->addHTML( wfMsgWikiHtml( 'watchlistanontext', $llink ) ); - # Add login form for convenience - $form = new LoginForm( $wgRequest ); - $form->execute(); - # Set page title (also LoginForm sets it too, but we prefer this one) - $wgOut->setPageTitle( wfMsg( 'watchnologin' ) ); return; } -- 2.20.1