From 7533fc9b2093a9d12a32a578f00a6fe40c05a02a Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Sun, 24 Jul 2011 00:56:59 +0000 Subject: [PATCH] Add lang & dir attributes around the recentchangestext message, because it is in the content language. --- includes/specials/SpecialRecentchanges.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ); } /** -- 2.20.1