From bbc37ab577b1d893397ab66d84855c5eb94435c4 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 25 Oct 2010 21:46:35 +0000 Subject: [PATCH] Followup r75371, use MediaWiki default user and content language for messages --- includes/installer/CoreInstaller.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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() ); -- 2.20.1