Index: trunk/phase3/includes/WatchlistEditor.php |
— | — | @@ -208,13 +208,15 @@ |
209 | 209 | $titles = array(); |
210 | 210 | $dbr = wfGetDB( DB_MASTER ); |
211 | 211 | |
212 | | - $res = $dbr->select( array( 'watchlist', 'page' ), |
213 | | - array( 'wl_namespace', 'wl_title', 'page_id', 'page_len', 'page_is_redirect', 'page_latest' ), |
214 | | - array( 'wl_user' => $user->getId() ), |
215 | | - __METHOD__, |
216 | | - $dbr->implicitOrderby() ? array( ) : array( 'ORDER BY' => 'wl_title' ), |
217 | | - array( 'page' => array( 'LEFT JOIN', 'wl_namespace = page_namespace AND wl_title = page_title' ) ) |
218 | | - ); |
| 212 | + $res = $dbr->select( |
| 213 | + array( 'watchlist', 'page' ), |
| 214 | + array( 'wl_namespace', 'wl_title', 'page_id', 'page_len', 'page_is_redirect', 'page_latest' ), |
| 215 | + array( 'wl_user' => $user->getId() ), |
| 216 | + __METHOD__, |
| 217 | + $dbr->implicitOrderby() ? array( ) : array( 'ORDER BY' => 'wl_title' ), |
| 218 | + array( 'page' => |
| 219 | + array( 'LEFT JOIN', 'wl_namespace = page_namespace AND wl_title = page_title' ) ) |
| 220 | + ); |
219 | 221 | |
220 | 222 | if( $res && $dbr->numRows( $res ) > 0 ) { |
221 | 223 | $cache = LinkCache::singleton(); |