Index: trunk/phase3/includes/specials/SpecialImport.php |
— | — | @@ -352,8 +352,6 @@ |
353 | 353 | * @return void |
354 | 354 | */ |
355 | 355 | function reportPage( $title, $origTitle, $revisionCount, $successCount, $pageInfo ) { |
356 | | - global $wgContLang; |
357 | | - |
358 | 356 | $args = func_get_args(); |
359 | 357 | call_user_func_array( $this->mOriginalPageOutCallback, $args ); |
360 | 358 | |
— | — | @@ -364,19 +362,16 @@ |
365 | 363 | |
366 | 364 | $this->mPageCount++; |
367 | 365 | |
368 | | - $localCount = $this->getLanguage()->formatNum( $successCount ); |
369 | | - $contentCount = $wgContLang->formatNum( $successCount ); |
370 | | - |
371 | 366 | if( $successCount > 0 ) { |
372 | 367 | $this->getOutput()->addHTML( "<li>" . Linker::linkKnown( $title ) . " " . |
373 | | - $this->msg( 'import-revision-count', $localCount ) . |
| 368 | + $this->msg( 'import-revision-count' )->numParams( $successCount )->escaped() . |
374 | 369 | "</li>\n" |
375 | 370 | ); |
376 | 371 | |
377 | 372 | $log = new LogPage( 'import' ); |
378 | 373 | if( $this->mIsUpload ) { |
379 | | - $detail = $this->msg( 'import-logentry-upload-detail', |
380 | | - $contentCount )->inContentLanguage()->text(); |
| 374 | + $detail = $this->msg( 'import-logentry-upload-detail' )->numParams( |
| 375 | + $successCount )->inContentLanguage()->text(); |
381 | 376 | if ( $this->reason ) { |
382 | 377 | $detail .= $this->msg( 'colon-separator' )->inContentLanguage()->text() . $this->reason; |
383 | 378 | } |
— | — | @@ -384,8 +379,8 @@ |
385 | 380 | } else { |
386 | 381 | $interwiki = '[[:' . $this->mInterwiki . ':' . |
387 | 382 | $origTitle->getPrefixedText() . ']]'; |
388 | | - $detail = $this->msg( 'import-logentry-interwiki-detail', |
389 | | - $contentCount, $interwiki )->inContentLanguage()->text(); |
| 383 | + $detail = $this->msg( 'import-logentry-interwiki-detail' )->numParams( |
| 384 | + $successCount )->params( $interwiki )->inContentLanguage()->text(); |
390 | 385 | if ( $this->reason ) { |
391 | 386 | $detail .= $this->msg( 'colon-separator' )->inContentLanguage()->text() . $this->reason; |
392 | 387 | } |