Add lang & dir attributes around the recentchangestext message, because it is in...
authorRobin Pepermans <robin@users.mediawiki.org>
Sun, 24 Jul 2011 00:56:59 +0000 (00:56 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Sun, 24 Jul 2011 00:56:59 +0000 (00:56 +0000)
includes/specials/SpecialRecentchanges.php

index af631cb..8b9e72a 100644 (file)
@@ -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 );
        }
 
        /**