Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | } |
93 | 93 | |
94 | 94 | $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'); |
96 | 96 | |
97 | 97 | $watchlistCount = $dbr->selectField( 'watchlist', 'COUNT(*)', |
98 | 98 | array( 'wl_user' => $uid ), __METHOD__ ); |
— | — | @@ -198,9 +198,10 @@ |
199 | 199 | } else { |
200 | 200 | $wltsfield = ''; |
201 | 201 | } |
202 | | - $sql = "SELECT ${recentchanges}.* ${wltsfield} |
| 202 | + $sql = "SELECT ${recentchanges}.* ${wltsfield}, {$user}.user_editcount, {$user}.user_registration |
203 | 203 | FROM $watchlist,$recentchanges |
204 | 204 | LEFT JOIN $page ON rc_cur_id=page_id |
| 205 | + LEFT JOIN $user ON (rc_user !='0' AND rc_user = user_id) |
205 | 206 | WHERE wl_user=$uid |
206 | 207 | AND wl_namespace=rc_namespace |
207 | 208 | AND wl_title=rc_title |