From 470e72647fae71055b36c329934168ba99796d66 Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Fri, 24 Jun 2011 20:25:55 +0000 Subject: [PATCH] (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. --- includes/specials/SpecialWhatlinkshere.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() { -- 2.20.1