X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialImport.php;h=428556f33d3e3b4fd340bc44e0b44b88fce10e7b;hp=cfefa47642164f8b4e20592822af475a7e8de197;hb=9e8439e79d67788916d488f645108f79016d9aca;hpb=5d1b19ed478271f4ef3204f4a388eb39effb275f diff --git a/includes/specials/SpecialImport.php b/includes/specials/SpecialImport.php index cfefa47642..428556f33d 100644 --- a/includes/specials/SpecialImport.php +++ b/includes/specials/SpecialImport.php @@ -187,7 +187,8 @@ class SpecialImport extends SpecialPage { $out = $this->getOutput(); if ( !$source->isGood() ) { $out->wrapWikiTextAsInterface( 'error', - $this->msg( 'importfailed', $source->getWikiText() )->plain() + $this->msg( 'importfailed', $source->getWikiText( false, false, $this->getLanguage() ) ) + ->plain() ); } else { $importer = new WikiImporter( $source->value, $this->getConfig() ); @@ -200,7 +201,7 @@ class SpecialImport extends SpecialPage { "
\n$1\n
", [ 'import-options-wrong', - $statusRootPage->getWikiText(), + $statusRootPage->getWikiText( false, false, $this->getLanguage() ), count( $statusRootPage->getErrorsArray() ) ] ); @@ -239,7 +240,7 @@ class SpecialImport extends SpecialPage { # Zero revisions $out->wrapWikiMsg( "
\n$1\n
", - [ 'importfailed', $result->getWikiText() ] + [ 'importfailed', $result->getWikiText( false, false, $this->getLanguage() ) ] ); } else { # Success!