From 9a7a484828bfd54090883093f14048372d80e15d Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 25 Oct 2010 14:41:13 +0000 Subject: [PATCH] Revert mainpage part of r75347. Should go in its own method, with messages, proper error handling, and should fix bug 22308 (trivial) --- includes/installer/Installer.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 5fe5cc3e2b..be5d85face 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -357,22 +357,6 @@ abstract class Installer { if( $status->isOK() ) { LBFactory::enableBackend(); } - - - $titleobj = Title::newFromText( wfMsgNoDB( "mainpage" ) ); - $article = new Article( $titleobj ); - $newid = $article->insertOn( $installer->db ); - $revision = new Revision( array( - 'page' => $newid, - 'text' => wfMsg( 'mainpagetext' ) . "\n\n" . wfMsgNoTrans( 'mainpagedocfooter' ), - 'comment' => '', - 'user' => 0, - 'user_text' => 'MediaWiki default', - ) ); - $revid = $revision->insertOn( $installer->db ); - $article->updateRevisionOn( $installer->db, $revision ); - - return $status; } /** -- 2.20.1