Index: trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | $changed = 0; |
23 | 23 | while( $blockEnd <= $end ) { |
24 | 24 | 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"; |
26 | 26 | $res = $db->select( array('flaggedrevs', 'page'), |
27 | 27 | array('fr_rev_id','fr_tags','fr_quality','page_namespace','page_title', |
28 | 28 | 'fr_img_name','fr_img_timestamp','fr_img_sha1'), |
— | — | @@ -43,9 +43,9 @@ |
44 | 44 | array( 'fi_rev_id' => $row->fr_rev_id, |
45 | 45 | 'fi_name' => $row->page_title ), |
46 | 46 | __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; |
50 | 50 | } |
51 | 51 | if( $file && ($file != $row->fr_img_name || $time != $row->fr_img_timestamp || $sha1 != $row->fr_img_sha1) ) { |
52 | 52 | $changed++; |