(bug 7306) RTL text in an LTR wiki breaks appearance of Special:Recentchanges
authorRotem Liss <rotem@users.mediawiki.org>
Wed, 13 Sep 2006 10:29:56 +0000 (10:29 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Wed, 13 Sep 2006 10:29:56 +0000 (10:29 +0000)
RELEASE-NOTES
includes/ChangesList.php

index 0fcfc69..d78a158 100644 (file)
@@ -197,6 +197,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Add --user, --comment, and --license options to importImages.php
 * (bug 6216) The immobile namespace message does not mention the source page
 * (bug 7299) Normalize username filter on Special:Newpages
+* (bug 7306) RTL text in an LTR wiki breaks appearance of Special:Recentchanges
 
 
 == Languages updated ==
index b2c1abe..6797bb4 100644 (file)
@@ -394,6 +394,7 @@ class EnhancedChangesList extends ChangesList {
         * Enhanced RC group
         */
        function recentChangesBlockGroup( $block ) {
+               global $wgContLang;
                $r = '';
 
                # Collate list of users
@@ -423,6 +424,7 @@ class EnhancedChangesList extends ChangesList {
                $users = array();
                foreach( $userlinks as $userlink => $count) {
                        $text = $userlink;
+                       $text .= $wgContLang->getDirMark();
                        if( $count > 1 ) {
                                $text .= ' ('.$count.'&times;)';
                        }
@@ -450,6 +452,7 @@ class EnhancedChangesList extends ChangesList {
 
                # Article link
                $r .= $this->maybeWatchedLink( $block[0]->link, $block[0]->watched );
+               $r .= $wgContLang->getDirMark();
 
                $curIdEq = 'curid=' . $block[0]->mAttribs['rc_cur_id'];
                $currentRevision = $block[0]->mAttribs['rc_this_oldid'];