r107330 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107329‎ | r107330 | r107331 >
Date:16:28, 26 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Use WikiPage instead of Article to call updateRevisionOn()
Modified paths:
  • /trunk/phase3/maintenance/attachLatest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/attachLatest.php
@@ -65,8 +65,8 @@
6666 $id = $revision->getId();
6767 $this->output( wfWikiID() . " $pageId [[$name]] latest time $latestTime, rev id $id\n" );
6868 if ( $this->hasOption( 'fix' ) ) {
69 - $article = new Article( $title );
70 - $article->updateRevisionOn( $dbw, $revision );
 69+ $page = WikiPage::factory( $title );
 70+ $page->updateRevisionOn( $dbw, $revision );
7171 }
7272 $n++;
7373 }

Status & tagging log