Index: trunk/extensions/FlaggedRevs/specialpages/ProblemChanges_body.php |
— | — | @@ -288,7 +288,8 @@ |
289 | 289 | } |
290 | 290 | |
291 | 291 | function getQueryInfo() { |
292 | | - global $wgUser; |
| 292 | + global $wgUser, $wgOldChangeTagsIndex; |
| 293 | + $ctIndex = $wgOldChangeTagsIndex ? 'ct_tag' : 'change_tag_rev_tag'; |
293 | 294 | $conds = $this->mConds; |
294 | 295 | $tables = array( 'page', 'revision', 'change_tag' ); |
295 | 296 | $fields = array('page_namespace','page_title','page_latest'); |
— | — | @@ -305,7 +306,7 @@ |
306 | 307 | $conds[] = 'ct_rev_id = rev_id'; |
307 | 308 | $conds['ct_tag'] = $this->tag; |
308 | 309 | $useIndex = array('flaggedpages' => 'fp_pending_since', |
309 | | - 'change_tag' => 'change_tag_rev_tag '); |
| 310 | + 'change_tag' => $ctIndex); |
310 | 311 | # Filter by category |
311 | 312 | if( $this->category ) { |
312 | 313 | array_unshift($tables,'categorylinks'); // order matters |
— | — | @@ -329,7 +330,7 @@ |
330 | 331 | $conds[] = 'rev_id = ct_rev_id'; |
331 | 332 | $conds['ct_tag'] = $this->tag; |
332 | 333 | $useIndex = array('flaggedpage_pending' => 'fpp_quality_pending', |
333 | | - 'change_tag' => 'change_tag_rev_tag '); |
| 334 | + 'change_tag' => $ctIndex); |
334 | 335 | # Filter by review level |
335 | 336 | $conds['fpp_quality'] = $this->level; |
336 | 337 | # Filter by category |