$out = $this->getOutput();
if ( !$source->isGood() ) {
- $out->addWikiText( "<div class=\"error\">\n" .
- $this->msg( 'importfailed', $source->getWikiText() )->parse() . "\n</div>" );
+ $out->wrapWikiTextAsInterface( 'error',
+ $this->msg( 'importfailed', $source->getWikiText() )->plain()
+ );
} else {
$importer = new WikiImporter( $source->value, $this->getConfig() );
if ( !is_null( $this->namespace ) ) {
'selected' => ( $isSameSourceAsBefore ?
$this->namespace :
( $defaultNamespace || '' ) ),
+ 'in-user-lang' => true,
], [
'name' => "namespace",
// mw-import-namespace-interwiki, mw-import-namespace-upload