Index: trunk/extensions/FlaggedRevs/presentation/FlaggedRevsUI.hooks.php |
— | — | @@ -302,8 +302,7 @@ |
303 | 303 | $queryInfo['fields'][] = 'fr_quality'; |
304 | 304 | $queryInfo['fields'][] = 'fr_user'; |
305 | 305 | $queryInfo['fields'][] = 'fr_flags'; |
306 | | - $queryInfo['join_conds']['flaggedrevs'] = array( 'LEFT JOIN', |
307 | | - "fr_page_id = rev_page AND fr_rev_id = rev_id" ); |
| 306 | + $queryInfo['join_conds']['flaggedrevs'] = array( 'LEFT JOIN', "fr_rev_id = rev_id" ); |
308 | 307 | # Find reviewer name. Sanity check that no extensions added a `user` query. |
309 | 308 | if ( !in_array( 'user', $queryInfo['tables'] ) ) { |
310 | 309 | $queryInfo['tables'][] = 'user'; |
— | — | @@ -348,8 +347,7 @@ |
349 | 348 | # Highlight flaggedrevs |
350 | 349 | $queryInfo['tables'][] = 'flaggedrevs'; |
351 | 350 | $queryInfo['fields'][] = 'fr_quality'; |
352 | | - $queryInfo['join_conds']['flaggedrevs'] = array( 'LEFT JOIN', |
353 | | - "fr_page_id = rev_page AND fr_rev_id = rev_id" ); |
| 351 | + $queryInfo['join_conds']['flaggedrevs'] = array( 'LEFT JOIN', "fr_rev_id = rev_id" ); |
354 | 352 | # Highlight unchecked content |
355 | 353 | $queryInfo['tables'][] = 'flaggedpages'; |
356 | 354 | $queryInfo['fields'][] = 'fp_stable'; |