Index: trunk/phase3/maintenance/tests/parser/parserTest.inc |
— | — | @@ -1162,7 +1162,8 @@ |
1163 | 1163 | $oldCapitalLinks = $wgCapitalLinks; |
1164 | 1164 | $wgCapitalLinks = true; // We only need this from SetupGlobals() See r70917#c8637 |
1165 | 1165 | |
1166 | | - $title = Title::newFromText( self::chomp($name) ); |
| 1166 | + $name = self::chomp( $name ); |
| 1167 | + $title = Title::newFromText( $name ); |
1167 | 1168 | |
1168 | 1169 | if ( is_null( $title ) ) { |
1169 | 1170 | wfDie( "invalid title ('$name' => '$title') at line $line\n" ); |
— | — | @@ -1171,9 +1172,7 @@ |
1172 | 1173 | $aid = $title->getArticleID( Title::GAID_FOR_UPDATE ); |
1173 | 1174 | |
1174 | 1175 | if ( $aid != 0 ) { |
1175 | | - foreach(debug_backtrace() as $bt) { |
1176 | | - echo "{$bt['file']}::{$bt['line']}\n"; |
1177 | | - } |
| 1176 | + debug_print_backtrace(); |
1178 | 1177 | wfDie( "duplicate article '$name' at line $line\n" ); |
1179 | 1178 | } |
1180 | 1179 | |