Index: trunk/phase3/maintenance/parserTests.php |
— | — | @@ -298,6 +298,7 @@ |
299 | 299 | 'wgNamespacesWithSubpages' => array( 0 => preg_match('/\\bsubpage\\b/i', $opts)), |
300 | 300 | 'wgMaxTocLevel' => 999, |
301 | 301 | 'wgCapitalLinks' => true, |
| 302 | + 'wgDefaultUserOptions' => array(), |
302 | 303 | ); |
303 | 304 | $this->savedGlobals = array(); |
304 | 305 | foreach( $settings as $var => $val ) { |
— | — | @@ -307,6 +308,9 @@ |
308 | 309 | $GLOBALS['wgLoadBalancer']->loadMasterPos(); |
309 | 310 | $GLOBALS['wgMessageCache']->initialise( new BagOStuff(), false, 0, $GLOBALS['wgDBname'] ); |
310 | 311 | $this->setupDatabase(); |
| 312 | + |
| 313 | + global $wgUser; |
| 314 | + $wgUser = new User(); |
311 | 315 | } |
312 | 316 | |
313 | 317 | # List of temporary tables to create, without prefix |