From 876da5e6dd2b9561ec348cbce81a7213c5127485 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 24 Jan 2011 19:09:23 +0000 Subject: [PATCH] Workaround null Title error in parser during main page creation. Used $wgTitle. I feel dirty --- includes/installer/Installer.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index e83678044b..311b52ae99 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -1403,7 +1403,12 @@ abstract class Installer { protected function createMainpage( DatabaseInstaller &$installer ) { $status = Status::newGood(); try { - $article = new Article( Title::newMainPage() ); + // STUPID STUPID $wgTitle. PST calls getUserSig(), which joyfully + // calls for a parsed message and uses $wgTitle. There isn't even + // a signature in this... + global $wgTitle; + $wgTitle = Title::newMainPage(); + $article = new Article( $wgTitle ); $article->doEdit( wfMsgForContent( 'mainpagetext' ) . "\n\n" . wfMsgForContent( 'mainpagedocfooter' ), '', -- 2.20.1