From 56ca6662e8fcb1c837342664382c04fad5de8fff Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 10 Dec 2011 20:03:19 +0000 Subject: [PATCH] Use WikiPage instead of Article --- includes/installer/Installer.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index f95176653c..20429b7564 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -1525,13 +1525,13 @@ abstract class Installer { protected function createMainpage( DatabaseInstaller $installer ) { $status = Status::newGood(); try { - $article = new Article( Title::newMainPage() ); - $article->doEdit( wfMsgForContent( 'mainpagetext' ) . "\n\n" . - wfMsgForContent( 'mainpagedocfooter' ), - '', - EDIT_NEW, - false, - User::newFromName( 'MediaWiki default' ) ); + $page = WikiPage::factory( Title::newMainPage() ); + $page->doEdit( wfMsgForContent( 'mainpagetext' ) . "\n\n" . + wfMsgForContent( 'mainpagedocfooter' ), + '', + EDIT_NEW, + false, + User::newFromName( 'MediaWiki default' ) ); } catch (MWException $e) { //using raw, because $wgShowExceptionDetails can not be set yet $status->fatal( 'config-install-mainpage-failed', $e->getMessage() ); -- 2.20.1