From: Alexandre Emsenhuber Date: Sun, 20 Nov 2011 18:59:23 +0000 (+0000) Subject: Use WikiPage instead of Article to call updateRevisionOn() X-Git-Tag: 1.31.0-rc.0~26379 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=e1c99cc77e903f774b3f7c72c5970aa6e25283b3;p=lhc%2Fweb%2Fwiklou.git Use WikiPage instead of Article to call updateRevisionOn() --- diff --git a/includes/specials/SpecialMergeHistory.php b/includes/specials/SpecialMergeHistory.php index b4b5f108f5..e0dd331f83 100644 --- a/includes/specials/SpecialMergeHistory.php +++ b/includes/specials/SpecialMergeHistory.php @@ -370,13 +370,13 @@ class SpecialMergeHistory extends SpecialPage { } $mwRedir = MagicWord::get( 'redirect' ); $redirectText = $mwRedir->getSynonym( 0 ) . ' [[' . $destTitle->getPrefixedText() . "]]\n"; - $redirectArticle = new Article( $targetTitle ); + $redirectPage = WikiPage::factory( $targetTitle ); $redirectRevision = new Revision( array( 'page' => $this->mTargetID, 'comment' => $comment, 'text' => $redirectText ) ); $redirectRevision->insertOn( $dbw ); - $redirectArticle->updateRevisionOn( $dbw, $redirectRevision ); + $redirectPage->updateRevisionOn( $dbw, $redirectRevision ); # Now, we record the link from the redirect to the new title. # It should have no other outgoing links...