From: Rotem Liss Date: Wed, 13 Sep 2006 10:29:56 +0000 (+0000) Subject: (bug 7306) RTL text in an LTR wiki breaks appearance of Special:Recentchanges X-Git-Tag: 1.31.0-rc.0~55788 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=a1bf699cfaec202eee9856066c6ba344304b327b;p=lhc%2Fweb%2Fwiklou.git (bug 7306) RTL text in an LTR wiki breaks appearance of Special:Recentchanges --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0fcfc69b5e..d78a15823b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/ChangesList.php b/includes/ChangesList.php index b2c1abe243..6797bb41d0 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -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.'×)'; } @@ -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'];