r36350 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36349‎ | r36350 | r36351 >
Date:20:17, 16 June 2008
Author:aaron
Status:old
Tags:
Comment:
Functions were renamed
Modified paths:
  • /trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.inc (modified) (history)
  • /trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.inc
@@ -32,7 +32,7 @@
3333 $title = Title::makeTitle( $row->page_namespace, $row->page_title );
3434 $rev = Revision::newFromId( $row->page_latest );
3535 # 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 );
3737 # Should exist, but to be safe...
3838 if( !$frev && $rev && FlaggedRevs::isPageReviewable($title) ) {
3939 $text = $rev->getText();
Index: trunk/extensions/FlaggedRevs/maintenance/updateLinks.inc
@@ -98,7 +98,7 @@
9999 foreach( $res as $row ) {
100100 $title = Title::makeTitle( $row->page_namespace, $row->page_title );
101101 # Replaces new fields into flaggedpages
102 - $frev = FlaggedRevs::getStablePageRev( $title, false, true );
 102+ $frev = FlaggedRevision::newFromStable( $title, false, true );
103103 # Update fp_stable, fp_quality, and fp_reviewed
104104 if( $frev ) {
105105 $article = new Article( $title );
@@ -147,7 +147,7 @@
148148 foreach( $res as $row ) {
149149 $revision = Revision::newFromId( $row->ft_rev_id );
150150 # 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;
152152 # Somethings broke? Delete the row...
153153 if( !$frev ) {
154154 $db->delete( 'flaggedtemplates',
@@ -192,7 +192,7 @@
193193 foreach( $res as $row ) {
194194 $revision = Revision::newFromId( $row->fi_rev_id );
195195 # 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;
197197 # Somethings broke? Delete the row...
198198 if( !$frev ) {
199199 $db->delete( 'flaggedimages',

Status & tagging log