From: Chad Horohoe Date: Mon, 25 Oct 2010 21:46:35 +0000 (+0000) Subject: Followup r75371, use MediaWiki default user and content language for messages X-Git-Tag: 1.31.0-rc.0~34313 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=bbc37ab577b1d893397ab66d84855c5eb94435c4;p=lhc%2Fweb%2Fwiklou.git Followup r75371, use MediaWiki default user and content language for messages --- diff --git a/includes/installer/CoreInstaller.php b/includes/installer/CoreInstaller.php index 7d604b3f8e..201b612d28 100644 --- a/includes/installer/CoreInstaller.php +++ b/includes/installer/CoreInstaller.php @@ -440,11 +440,14 @@ abstract class CoreInstaller extends Installer { public function installMainpage( DatabaseInstaller &$installer ) { $status = Status::newGood(); try { - $titleobj = Title::newFromText( wfMsgNoDB( "mainpage" ) ); + $titleobj = Title::newFromText( wfMsgForContent( "mainpage" ) ); $article = new Article( $titleobj ); - $article->doEdit( wfMsg( 'mainpagetext' ) . "\n\n" . wfMsgNoTrans( 'mainpagedocfooter' ), + $article->doEdit( wfMsgForContent( 'mainpagetext' ) . "\n\n" . + wfMsgForContent( 'mainpagedocfooter' ), '', - EDIT_NEW ); + 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() );