From: Platonides Date: Mon, 23 Aug 2010 21:33:41 +0000 (+0000) Subject: Follow up r70917. Having $wgCapitalLinks = false; was what caused the errors. X-Git-Tag: 1.31.0-rc.0~35361 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=456127a746f6d1fc7a1448dba0220278450dd5e2;p=lhc%2Fweb%2Fwiklou.git Follow up r70917. Having $wgCapitalLinks = false; was what caused the errors. --- 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; } /**