From: Robin Pepermans Date: Sun, 24 Jul 2011 00:56:59 +0000 (+0000) Subject: Add lang & dir attributes around the recentchangestext message, because it is in... X-Git-Tag: 1.31.0-rc.0~28659 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7533fc9b2093a9d12a32a578f00a6fe40c05a02a;p=lhc%2Fweb%2Fwiklou.git Add lang & dir attributes around the recentchangestext message, because it is in the content language. --- diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index af631cb681..8b9e72ac26 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -616,7 +616,12 @@ class SpecialRecentChanges extends IncludableSpecialPage { * @param $opts FormOptions */ function setTopText( FormOptions $opts ) { - $this->getOutput()->addWikiText( wfMsgForContentNoTrans( 'recentchangestext' ) ); + global $wgContLang; + $this->getOutput()->addWikiText( + Html::rawElement( 'p', + array( 'lang' => $wgContLang->getCode(), 'dir' => $wgContLang->getDir() ), + wfMsgForContentNoTrans( 'recentchangestext' ) + ), false ); } /**