Use WikiPage instead of Article
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 9 Nov 2011 11:39:52 +0000 (11:39 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 9 Nov 2011 11:39:52 +0000 (11:39 +0000)
includes/specials/SpecialUndelete.php

index 3c08ee7..dc509ec 100644 (file)
@@ -398,7 +398,7 @@ class PageArchive {
                $dbw = wfGetDB( DB_MASTER );
 
                # Does this page already exist? We'll have to update it...
-               $article = new Article( $this->title );
+               $article = WikiPage::factory( $this->title );
                # Load latest data for the current page (bug 31179)
                $article->loadPageData( 'fromdbmaster' );
                $oldcountable = $article->isCountable();