From 456127a746f6d1fc7a1448dba0220278450dd5e2 Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 23 Aug 2010 21:33:41 +0000 Subject: [PATCH] Follow up r70917. Having $wgCapitalLinks = false; was what caused the errors. --- maintenance/parserTests.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 4e9665ef44..7f38defddb 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -1029,6 +1029,10 @@ class ParserTest { * @param $line Integer: the input line number, for reporting errors */ public function addArticle( $name, $text, $line ) { + global $wgCapitalLinks; + $oldCapitalLinks = $wgCapitalLinks; + $wgCapitalLinks = true; // We only need this from SetupGlobals() See r70917#c8637 + $title = Title::newFromText( $name ); if ( is_null( $title ) ) { wfDie( "invalid title at line $line\n" ); @@ -1041,6 +1045,8 @@ class ParserTest { $art = new Article( $title ); $art->insertNewArticle( $text, '', false, false ); + + $wgCapitalLinks = $oldCapitalLinks; } /** -- 2.20.1