Index: trunk/phase3/maintenance/attachLatest.php |
— | — | @@ -65,8 +65,8 @@ |
66 | 66 | $id = $revision->getId(); |
67 | 67 | $this->output( wfWikiID() . " $pageId [[$name]] latest time $latestTime, rev id $id\n" ); |
68 | 68 | if ( $this->hasOption( 'fix' ) ) { |
69 | | - $article = new Article( $title ); |
70 | | - $article->updateRevisionOn( $dbw, $revision ); |
| 69 | + $page = WikiPage::factory( $title ); |
| 70 | + $page->updateRevisionOn( $dbw, $revision ); |
71 | 71 | } |
72 | 72 | $n++; |
73 | 73 | } |