From: Alexandre Emsenhuber Date: Sat, 10 Dec 2011 20:03:19 +0000 (+0000) Subject: Use WikiPage instead of Article X-Git-Tag: 1.31.0-rc.0~26098 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=56ca6662e8fcb1c837342664382c04fad5de8fff;p=lhc%2Fweb%2Fwiklou.git Use WikiPage instead of Article --- 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() );