From: Chad Horohoe Date: Mon, 24 Jan 2011 19:09:23 +0000 (+0000) Subject: Workaround null Title error in parser during main page creation. Used $wgTitle. I... X-Git-Tag: 1.31.0-rc.0~32390 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=876da5e6dd2b9561ec348cbce81a7213c5127485;p=lhc%2Fweb%2Fwiklou.git Workaround null Title error in parser during main page creation. Used $wgTitle. I feel dirty --- 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' ), '',