Index: trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | AND fr_page_id = rev_page AND fr_rev_id = rev_id AND page_id = rev_page"; |
27 | 27 | $res = $db->select( array('revision','flaggedrevs','page'), |
28 | 28 | 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'), |
30 | 30 | $cond, __FUNCTION__ ); |
31 | 31 | # Go through and clean up missing items, as well as correct fr_quality... |
32 | 32 | foreach( $res as $row ) { |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | 'fr_img_name' => $file, |
76 | 76 | 'fr_img_sha1' => $sha1, |
77 | 77 | '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 ), |
79 | 79 | __FUNCTION__ ); |
80 | 80 | $count++; |
81 | 81 | } |