Currently https://fa.wikipedia.org/wiki/MediaWiki:TEST.js?uselang=fa
is displaying "noarticletext" in LTR which is wrong.
Bug: T60685
Change-Id: I4dc76dc1c5134c0dbe0988d6d0a3286a0e52242f
$text = wfMessage( 'noarticletext-nopermission' )->plain();
}
- $outputPage->addWikiText( "<div class='noarticletext'>\n$text\n</div>" );
+ $dir = $this->getContext()->getLanguage()->getDir();
+ $lang = $this->getContext()->getLanguage()->getCode();
+ $outputPage->addWikiText( Xml::openElement( 'div', array(
+ 'class' => "noarticletext mw-content-$dir",
+ 'dir' => $dir,
+ 'lang' => $lang,
+ ) ) . "\n$text\n</div>" );
}
}