From: Brion Vibber Date: Wed, 19 Jan 2005 09:05:24 +0000 (+0000) Subject: Create a new $wgUser to initialize default settings properly. Not sure what's the... X-Git-Tag: 1.5.0alpha1~890 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=fdc09ed838efbd9f66e5e7114e49c3de37a19d32;p=lhc%2Fweb%2Fwiklou.git Create a new $wgUser to initialize default settings properly. Not sure what's the source of the problem atm... --- diff --git a/maintenance/parserTests.php b/maintenance/parserTests.php index fd2293fd32..575e19255a 100644 --- a/maintenance/parserTests.php +++ b/maintenance/parserTests.php @@ -298,6 +298,7 @@ class ParserTest { 'wgNamespacesWithSubpages' => array( 0 => preg_match('/\\bsubpage\\b/i', $opts)), 'wgMaxTocLevel' => 999, 'wgCapitalLinks' => true, + 'wgDefaultUserOptions' => array(), ); $this->savedGlobals = array(); foreach( $settings as $var => $val ) { @@ -307,6 +308,9 @@ class ParserTest { $GLOBALS['wgLoadBalancer']->loadMasterPos(); $GLOBALS['wgMessageCache']->initialise( new BagOStuff(), false, 0, $GLOBALS['wgDBname'] ); $this->setupDatabase(); + + global $wgUser; + $wgUser = new User(); } # List of temporary tables to create, without prefix