From: Aryeh Gregor Date: Wed, 28 Jan 2009 16:46:26 +0000 (+0000) Subject: Don't query unneeded rows on watchlist X-Git-Tag: 1.31.0-rc.0~43177 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=769890a8cc86a7dbb1f01b4262d583bdecae7232;p=lhc%2Fweb%2Fwiklou.git Don't query unneeded rows on watchlist This probably doesn't need to use a LinkBatch at all -- it could just retrieve some extra info in the watchlist query. But we need a LinkBatch anyway for the user pages, so why not. By request of Domas. --- diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 6075dd1925..0283cf07ca 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -323,6 +323,8 @@ function wfSpecialWatchlist( $par ) { $linkBatch->add( NS_USER, $userNameUnderscored ); } $linkBatch->add( NS_USER_TALK, $userNameUnderscored ); + + $linkBatch->add( $row->rc_namespace, $row->rc_title ); } $linkBatch->execute(); $dbr->dataSeek( $res, 0 );