Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -1403,7 +1403,12 @@ |
1404 | 1404 | protected function createMainpage( DatabaseInstaller &$installer ) { |
1405 | 1405 | $status = Status::newGood(); |
1406 | 1406 | try { |
1407 | | - $article = new Article( Title::newMainPage() ); |
| 1407 | + // STUPID STUPID $wgTitle. PST calls getUserSig(), which joyfully |
| 1408 | + // calls for a parsed message and uses $wgTitle. There isn't even |
| 1409 | + // a signature in this... |
| 1410 | + global $wgTitle; |
| 1411 | + $wgTitle = Title::newMainPage(); |
| 1412 | + $article = new Article( $wgTitle ); |
1408 | 1413 | $article->doEdit( wfMsgForContent( 'mainpagetext' ) . "\n\n" . |
1409 | 1414 | wfMsgForContent( 'mainpagedocfooter' ), |
1410 | 1415 | '', |