Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -1029,6 +1029,10 @@ |
1030 | 1030 | * @param $line Integer: the input line number, for reporting errors |
1031 | 1031 | */ |
1032 | 1032 | public function addArticle( $name, $text, $line ) { |
| 1033 | + global $wgCapitalLinks; |
| 1034 | + $oldCapitalLinks = $wgCapitalLinks; |
| 1035 | + $wgCapitalLinks = true; // We only need this from SetupGlobals() See r70917#c8637 |
| 1036 | + |
1033 | 1037 | $title = Title::newFromText( $name ); |
1034 | 1038 | if ( is_null( $title ) ) { |
1035 | 1039 | wfDie( "invalid title at line $line\n" ); |
— | — | @@ -1041,6 +1045,8 @@ |
1042 | 1046 | |
1043 | 1047 | $art = new Article( $title ); |
1044 | 1048 | $art->insertNewArticle( $text, '', false, false ); |
| 1049 | + |
| 1050 | + $wgCapitalLinks = $oldCapitalLinks; |
1045 | 1051 | } |
1046 | 1052 | |
1047 | 1053 | /** |