From: Brion Vibber Date: Wed, 27 Oct 2004 10:25:21 +0000 (+0000) Subject: Fix content language message cache (table of contents test depends on this) X-Git-Tag: 1.5.0alpha1~1438 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=4e0552070ff22774ee03d40034aa3b6f9f4fadf9;p=lhc%2Fweb%2Fwiklou.git Fix content language message cache (table of contents test depends on this) --- diff --git a/maintenance/parserTests.php b/maintenance/parserTests.php index 75f0117f34..1d8a7e3f0b 100644 --- a/maintenance/parserTests.php +++ b/maintenance/parserTests.php @@ -286,11 +286,13 @@ class ParserTest { 'wgStyleSheetPath' => '/skins', 'wgSitename' => 'MediaWiki', 'wgLanguageCode' => 'en', + 'wgContLanguageCode' => 'en', 'wgUseLatin1' => false, 'wgDBprefix' => 'parsertest', 'wgLoadBalancer' => LoadBalancer::newFromParams( $GLOBALS['wgDBservers'] ), 'wgLang' => new LanguageUtf8(), + 'wgContLang' => new LanguageUtf8(), 'wgNamespacesWithSubpages' => array( 0 => preg_match('/\\bsubpage\\b/i', $opts)), 'wgMaxTocLevel' => 999, ); @@ -300,6 +302,7 @@ class ParserTest { $GLOBALS[$var] = $val; } $GLOBALS['wgLoadBalancer']->loadMasterPos(); + $GLOBALS['wgMessageCache']->initialise( new BagOStuff(), false, 0, $GLOBALS['wgDBname'] ); $this->setupDatabase(); }