X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialImport.php;h=428556f33d3e3b4fd340bc44e0b44b88fce10e7b;hb=db3a8beb778ba841cf6bf795312bdba796c58ee5;hp=cfefa47642164f8b4e20592822af475a7e8de197;hpb=5d3194bbcd6b88c279396f28ee0ebc5c71594762;p=lhc%2Fweb%2Fwiklou.git 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!