Index: trunk/phase3/includes/installer/CoreInstaller.php |
— | — | @@ -444,12 +444,13 @@ |
445 | 445 | try { |
446 | 446 | $titleobj = Title::newFromText( wfMsgForContent( "mainpage" ) ); |
447 | 447 | $article = new Article( $titleobj ); |
448 | | - $article->doEdit( wfMsgForContent( 'mainpagetext' ) . "\n\n" . |
449 | | - wfMsgForContent( 'mainpagedocfooter' ), |
450 | | - '', |
451 | | - EDIT_NEW, |
452 | | - false, |
453 | | - User::newFromName( 'MediaWiki Default' ) ); |
| 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(); |
454 | 455 | } catch (MWException $e) { |
455 | 456 | //using raw, because $wgShowExceptionDetails can not be set yet |
456 | 457 | $status->fatal( 'config-install-mainpage-failed', $e->getMessage() ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -372,6 +372,7 @@ |
373 | 373 | $wgGroupPermissions now appear on Special:ListGroupRights |
374 | 374 | * (bug 23923) Special:Prefixindex no longer shows results if nothing was |
375 | 375 | requested. |
| 376 | +* (bug 22308) Search now finds text in default main page immediately after setup |
376 | 377 | |
377 | 378 | === API changes in 1.17 === |
378 | 379 | * (bug 22738) Allow filtering by action type on query=logevent. |