Index: trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.inc |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
34 | 34 | $rev = Revision::newFromId( $row->page_latest ); |
35 | 35 | # Is it already reviewed? |
36 | | - $frev = FlaggedRevs::getFlaggedRev( $title, $row->page_latest, false, true, $row->page_id ); |
| 36 | + $frev = FlaggedRevision::newFromTitle( $title, $row->page_latest, false, true, $row->page_id ); |
37 | 37 | # Should exist, but to be safe... |
38 | 38 | if( !$frev && $rev && FlaggedRevs::isPageReviewable($title) ) { |
39 | 39 | $text = $rev->getText(); |
Index: trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | foreach( $res as $row ) { |
100 | 100 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
101 | 101 | # Replaces new fields into flaggedpages |
102 | | - $frev = FlaggedRevs::getStablePageRev( $title, false, true ); |
| 102 | + $frev = FlaggedRevision::newFromStable( $title, false, true ); |
103 | 103 | # Update fp_stable, fp_quality, and fp_reviewed |
104 | 104 | if( $frev ) { |
105 | 105 | $article = new Article( $title ); |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | foreach( $res as $row ) { |
149 | 149 | $revision = Revision::newFromId( $row->ft_rev_id ); |
150 | 150 | # Replaces new fields into flaggedpages |
151 | | - $frev = $revision ? FlaggedRevs::getFlaggedRev( $revision->getTitle(), $row->ft_rev_id ) : null; |
| 151 | + $frev = $revision ? FlaggedRevision::newFromTitle( $revision->getTitle(), $row->ft_rev_id ) : null; |
152 | 152 | # Somethings broke? Delete the row... |
153 | 153 | if( !$frev ) { |
154 | 154 | $db->delete( 'flaggedtemplates', |
— | — | @@ -192,7 +192,7 @@ |
193 | 193 | foreach( $res as $row ) { |
194 | 194 | $revision = Revision::newFromId( $row->fi_rev_id ); |
195 | 195 | # Replaces new fields into flaggedpages |
196 | | - $frev = $revision ? FlaggedRevs::getFlaggedRev( $revision->getTitle(), $row->fi_rev_id ) : null; |
| 196 | + $frev = $revision ? FlaggedRevision::newFromTitle( $revision->getTitle(), $row->fi_rev_id ) : null; |
197 | 197 | # Somethings broke? Delete the row... |
198 | 198 | if( !$frev ) { |
199 | 199 | $db->delete( 'flaggedimages', |