Index: trunk/phase3/includes/specials/SpecialMergeHistory.php |
— | — | @@ -370,13 +370,13 @@ |
371 | 371 | } |
372 | 372 | $mwRedir = MagicWord::get( 'redirect' ); |
373 | 373 | $redirectText = $mwRedir->getSynonym( 0 ) . ' [[' . $destTitle->getPrefixedText() . "]]\n"; |
374 | | - $redirectArticle = new Article( $targetTitle ); |
| 374 | + $redirectPage = WikiPage::factory( $targetTitle ); |
375 | 375 | $redirectRevision = new Revision( array( |
376 | 376 | 'page' => $this->mTargetID, |
377 | 377 | 'comment' => $comment, |
378 | 378 | 'text' => $redirectText ) ); |
379 | 379 | $redirectRevision->insertOn( $dbw ); |
380 | | - $redirectArticle->updateRevisionOn( $dbw, $redirectRevision ); |
| 380 | + $redirectPage->updateRevisionOn( $dbw, $redirectRevision ); |
381 | 381 | |
382 | 382 | # Now, we record the link from the redirect to the new title. |
383 | 383 | # It should have no other outgoing links... |