r7172 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r7171‎ | r7172 | r7173 >
Date:09:05, 19 January 2005
Author:vibber
Status:old
Tags:
Comment:
Create a new $wgUser to initialize default settings properly. Not sure what's the source of the problem atm...
Modified paths:
  • /trunk/phase3/maintenance/parserTests.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.php
@@ -298,6 +298,7 @@
299299 'wgNamespacesWithSubpages' => array( 0 => preg_match('/\\bsubpage\\b/i', $opts)),
300300 'wgMaxTocLevel' => 999,
301301 'wgCapitalLinks' => true,
 302+ 'wgDefaultUserOptions' => array(),
302303 );
303304 $this->savedGlobals = array();
304305 foreach( $settings as $var => $val ) {
@@ -307,6 +308,9 @@
308309 $GLOBALS['wgLoadBalancer']->loadMasterPos();
309310 $GLOBALS['wgMessageCache']->initialise( new BagOStuff(), false, 0, $GLOBALS['wgDBname'] );
310311 $this->setupDatabase();
 312+
 313+ global $wgUser;
 314+ $wgUser = new User();
311315 }
312316
313317 # List of temporary tables to create, without prefix

Status & tagging log