r75699 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75698‎ | r75699 | r75700 >
Date:17:28, 30 October 2010
Author:demon
Status:ok
Tags:
Comment:
Revert r75654 per CR, doEdit() already takes care of search updates
Modified paths:
  • /trunk/phase3/includes/installer/CoreInstaller.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/installer/CoreInstaller.php
@@ -444,13 +444,12 @@
445445 try {
446446 $titleobj = Title::newFromText( wfMsgForContent( "mainpage" ) );
447447 $article = new Article( $titleobj );
448 - $text = wfMsgForContent( 'mainpagetext' ) . "\n\n" .
449 - wfMsgForContent( 'mainpagedocfooter' );
450 - $article->doEdit( $text, '', EDIT_NEW, false,
451 - User::newFromName( 'MediaWiki Default' ) );
452 - $u = new SearchUpdate( $titleobj->getArticleID(),
453 - $titleobj->getPrefixedDBkey(), $text );
454 - $u->doUpdate();
 448+ $article->doEdit( wfMsgForContent( 'mainpagetext' ) . "\n\n" .
 449+ wfMsgForContent( 'mainpagedocfooter' ),
 450+ '',
 451+ EDIT_NEW,
 452+ false,
 453+ User::newFromName( 'MediaWiki Default' ) );
455454 } catch (MWException $e) {
456455 //using raw, because $wgShowExceptionDetails can not be set yet
457456 $status->fatal( 'config-install-mainpage-failed', $e->getMessage() );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75654(bug 22308) Search should find text in default main page immediately after se...demon17:26, 29 October 2010

Status & tagging log