From 77af65b9c5b6ac52d6c242c0304480417bfeec8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Sat, 9 Nov 2013 01:37:59 +0100 Subject: [PATCH] SpecialWatchlist: Minor cleanup * Prettier whitespacing * Removed query building special-case already handled by makeList() Change-Id: I45aa7bbbff1e21abd739825939fd5cd3d02fc7a4 --- includes/specials/SpecialWatchlist.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 336b05bdd1..62c33a2fec 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -60,15 +60,21 @@ class SpecialWatchlist extends SpecialPage { // Add feed links $wlToken = $user->getTokenFromOption( 'watchlisttoken' ); if ( $wlToken ) { - $this->addFeedLinks( array( 'action' => 'feedwatchlist', 'allrev' => 'allrev', - 'wlowner' => $user->getName(), 'wltoken' => $wlToken ) ); + $this->addFeedLinks( array( + 'action' => 'feedwatchlist', + 'allrev' => 1, + 'wlowner' => $user->getName(), + 'wltoken' => $wlToken, + ) ); } $this->setHeaders(); $this->outputHeader(); - $output->addSubtitle( $this->msg( 'watchlistfor2', $user->getName() - )->rawParams( SpecialEditWatchlist::buildTools( null ) ) ); + $output->addSubtitle( + $this->msg( 'watchlistfor2', $user->getName() ) + ->rawParams( SpecialEditWatchlist::buildTools( null ) ) + ); $request = $this->getRequest(); @@ -205,10 +211,6 @@ class SpecialWatchlist extends SpecialPage { $nonRevisionTypes = array( RC_LOG ); wfRunHooks( 'SpecialWatchlistGetNonRevisionTypes', array( &$nonRevisionTypes ) ); if ( $nonRevisionTypes ) { - if ( count( $nonRevisionTypes ) === 1 ) { - // if only one use an equality instead of IN condition - $nonRevisionTypes = reset( $nonRevisionTypes ); - } $conds[] = $dbr->makeList( array( 'rc_this_oldid=page_latest', -- 2.20.1