r39003 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39002‎ | r39003 | r39004 >
Date:14:56, 9 August 2008
Author:aaron
Status:old
Tags:
Comment:
equality propagation again :)
Modified paths:
  • /trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc
@@ -25,7 +25,7 @@
2626 AND fr_page_id = rev_page AND fr_rev_id = rev_id AND page_id = rev_page";
2727 $res = $db->select( array('revision','flaggedrevs','page'),
2828 array('fr_rev_id','fr_tags','fr_quality','page_namespace','page_title',
29 - 'fr_img_name','fr_img_timestamp','fr_img_sha1'),
 29+ 'fr_img_name','fr_img_timestamp','fr_img_sha1','rev_page'),
3030 $cond, __FUNCTION__ );
3131 # Go through and clean up missing items, as well as correct fr_quality...
3232 foreach( $res as $row ) {
@@ -74,7 +74,7 @@
7575 'fr_img_name' => $file,
7676 'fr_img_sha1' => $sha1,
7777 'fr_img_timestamp' => $time ),
78 - array( 'fr_rev_id' => $row->fr_rev_id ),
 78+ array( 'fr_rev_id' => $row->fr_rev_id, 'fr_page_id' => $row->rev_page ),
7979 __FUNCTION__ );
8080 $count++;
8181 }

Status & tagging log