X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FparserTests.inc;h=05327c10653dac1954bd4fee8723f3d47ffe63a2;hb=5dbbca7331f618bd359fd14c1684f1990d6d02f1;hp=4e9665ef44d923de5098d47dd07d30752e5bb195;hpb=22ca4bc06a4390a1c1fc0a942f59d41b7928e5c9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 4e9665ef44..05327c1065 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -657,7 +657,7 @@ class ParserTest { $db->query( "DROP TABLE IF EXISTS $newTableName" ); } elseif ( in_array( $wgDBtype, array( 'postgres', 'oracle' ) ) ) { /* DROPs wouldn't work due to Foreign Key Constraints (bug 14990, r58669) - * Use "DROP TABLE IF EXISTS $newTableName CASCADE" for postgres? That + * Use "DROP TABLE IF EXISTS $newTableName CASCADE" for postgres? That * syntax would also work for mysql. */ } elseif ( $db->tableExists( $tbl ) ) { @@ -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; } /**