r40627 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40626‎ | r40627 | r40628 >
Date:23:33, 8 September 2008
Author:aaron
Status:old
Tags:
Comment:
Also mark new user edits here too
Modified paths:
  • /trunk/phase3/includes/specials/SpecialWatchlist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialWatchlist.php
@@ -91,7 +91,7 @@
9292 }
9393
9494 $dbr = wfGetDB( DB_SLAVE, 'watchlist' );
95 - list( $page, $watchlist, $recentchanges ) = $dbr->tableNamesN( 'page', 'watchlist', 'recentchanges' );
 95+ list($page,$watchlist,$recentchanges,$user) = $dbr->tableNamesN('page','watchlist','recentchanges','user');
9696
9797 $watchlistCount = $dbr->selectField( 'watchlist', 'COUNT(*)',
9898 array( 'wl_user' => $uid ), __METHOD__ );
@@ -198,9 +198,10 @@
199199 } else {
200200 $wltsfield = '';
201201 }
202 - $sql = "SELECT ${recentchanges}.* ${wltsfield}
 202+ $sql = "SELECT ${recentchanges}.* ${wltsfield}, {$user}.user_editcount, {$user}.user_registration
203203 FROM $watchlist,$recentchanges
204204 LEFT JOIN $page ON rc_cur_id=page_id
 205+ LEFT JOIN $user ON (rc_user !='0' AND rc_user = user_id)
205206 WHERE wl_user=$uid
206207 AND wl_namespace=rc_namespace
207208 AND wl_title=rc_title

Follow-up revisions

RevisionCommit summaryAuthorDate
r40901Revert r40627, r40551, r40536, r40535 (mark non-autoconfirmed users in RC and...tstarling05:56, 16 September 2008