r56475 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56474‎ | r56475 | r56476 >
Date:01:03, 17 September 2009
Author:aaron
Status:ok
Tags:
Comment:
Check crapy change_tag index variable
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/ProblemChanges_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/ProblemChanges_body.php
@@ -288,7 +288,8 @@
289289 }
290290
291291 function getQueryInfo() {
292 - global $wgUser;
 292+ global $wgUser, $wgOldChangeTagsIndex;
 293+ $ctIndex = $wgOldChangeTagsIndex ? 'ct_tag' : 'change_tag_rev_tag';
293294 $conds = $this->mConds;
294295 $tables = array( 'page', 'revision', 'change_tag' );
295296 $fields = array('page_namespace','page_title','page_latest');
@@ -305,7 +306,7 @@
306307 $conds[] = 'ct_rev_id = rev_id';
307308 $conds['ct_tag'] = $this->tag;
308309 $useIndex = array('flaggedpages' => 'fp_pending_since',
309 - 'change_tag' => 'change_tag_rev_tag ');
 310+ 'change_tag' => $ctIndex);
310311 # Filter by category
311312 if( $this->category ) {
312313 array_unshift($tables,'categorylinks'); // order matters
@@ -329,7 +330,7 @@
330331 $conds[] = 'rev_id = ct_rev_id';
331332 $conds['ct_tag'] = $this->tag;
332333 $useIndex = array('flaggedpage_pending' => 'fpp_quality_pending',
333 - 'change_tag' => 'change_tag_rev_tag ');
 334+ 'change_tag' => $ctIndex);
334335 # Filter by review level
335336 $conds['fpp_quality'] = $this->level;
336337 # Filter by category

Follow-up revisions

RevisionCommit summaryAuthorDate
r56476merge r56475brion01:07, 17 September 2009

Status & tagging log