r35128 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35127‎ | r35128 | r35129 >
Date:03:06, 21 May 2008
Author:aaron
Status:old
Tags:
Comment:
*sigh*
Modified paths:
  • /trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc
@@ -21,7 +21,7 @@
2222 $changed = 0;
2323 while( $blockEnd <= $end ) {
2424 echo "...doing fr_rev_id from $blockStart to $blockEnd\n";
25 - $cond = "fr_rev_id BETWEEN $blockStart AND $blockEnd AND page_id = fr_rev_id";
 25+ $cond = "fr_rev_id BETWEEN $blockStart AND $blockEnd AND page_id = fr_page_id";
2626 $res = $db->select( array('flaggedrevs', 'page'),
2727 array('fr_rev_id','fr_tags','fr_quality','page_namespace','page_title',
2828 'fr_img_name','fr_img_timestamp','fr_img_sha1'),
@@ -43,9 +43,9 @@
4444 array( 'fi_rev_id' => $row->fr_rev_id,
4545 'fi_name' => $row->page_title ),
4646 __METHOD__ );
47 - $time = $row ? $row->fr_img_timestamp : null;
48 - $sha1 = $row ? $row->fr_img_sha1 : null;
49 - $file = $row ? $row->page_title : null;
 47+ $time = $irow ? $irow->fi_img_timestamp : null;
 48+ $sha1 = $irow ? $irow->fi_img_sha1 : null;
 49+ $file = $irow ? $row->page_title : null;
5050 }
5151 if( $file && ($file != $row->fr_img_name || $time != $row->fr_img_timestamp || $sha1 != $row->fr_img_sha1) ) {
5252 $changed++;

Status & tagging log