From: Chad Horohoe Date: Sat, 30 Oct 2010 17:28:26 +0000 (+0000) Subject: Revert r75654 per CR, doEdit() already takes care of search updates X-Git-Tag: 1.31.0-rc.0~34205 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=8950f789f8418014d9b01bf1c860f821c535ea6a;p=lhc%2Fweb%2Fwiklou.git Revert r75654 per CR, doEdit() already takes care of search updates --- 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() );