From: Robin Pepermans Date: Fri, 24 Jun 2011 20:25:55 +0000 (+0000) Subject: (bug 12406) Pages with names in RTL scripts are not listed correctly in Special:Whatl... X-Git-Tag: 1.31.0-rc.0~29303 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=470e72647fae71055b36c329934168ba99796d66;p=lhc%2Fweb%2Fwiklou.git (bug 12406) Pages with names in RTL scripts are not listed correctly in Special:Whatlinkshere -> add a direction mark The direction mark is no longer needed when bug 6100 is fixed, but this fixes it for the meantime. --- diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 190e95d6da..078677e95e 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -310,9 +310,10 @@ class SpecialWhatLinksHere extends SpecialPage { $wlhLink = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] ); $wlh = Xml::wrapClass( "($wlhLink)", 'mw-whatlinkshere-tools' ); + $dirmark = wfUILang()->getDirMark(); return $notClose ? - Xml::openElement( 'li' ) . "$link $propsText $wlh\n" : - Xml::tags( 'li', null, "$link $propsText $wlh" ) . "\n"; + Xml::openElement( 'li' ) . "$link $propsText $dirmark $wlh\n" : + Xml::tags( 'li', null, "$link $propsText $dirmark $wlh" ) . "\n"; } protected function listEnd() {