From 8950f789f8418014d9b01bf1c860f821c535ea6a Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 30 Oct 2010 17:28:26 +0000 Subject: [PATCH] Revert r75654 per CR, doEdit() already takes care of search updates --- includes/installer/CoreInstaller.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/includes/installer/CoreInstaller.php b/includes/installer/CoreInstaller.php index 436dc27840..ca10131c35 100644 --- a/includes/installer/CoreInstaller.php +++ b/includes/installer/CoreInstaller.php @@ -444,13 +444,12 @@ abstract class CoreInstaller extends Installer { try { $titleobj = Title::newFromText( wfMsgForContent( "mainpage" ) ); $article = new Article( $titleobj ); - $text = wfMsgForContent( 'mainpagetext' ) . "\n\n" . - wfMsgForContent( 'mainpagedocfooter' ); - $article->doEdit( $text, '', EDIT_NEW, false, - User::newFromName( 'MediaWiki Default' ) ); - $u = new SearchUpdate( $titleobj->getArticleID(), - $titleobj->getPrefixedDBkey(), $text ); - $u->doUpdate(); + $article->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