(bug 12406) Pages with names in RTL scripts are not listed correctly in Special:Whatl...
authorRobin Pepermans <robin@users.mediawiki.org>
Fri, 24 Jun 2011 20:25:55 +0000 (20:25 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Fri, 24 Jun 2011 20:25:55 +0000 (20:25 +0000)
The direction mark is no longer needed when bug 6100 is fixed, but this fixes it for the meantime.

includes/specials/SpecialWhatlinkshere.php

index 190e95d..078677e 100644 (file)
@@ -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() {