As suggested to me by email: very active members of a wiki community can end up recei...
[lhc/web/wiklou.git] / includes / specials / SpecialWhatlinkshere.php
index 078677e..3740442 100644 (file)
@@ -48,7 +48,7 @@ class SpecialWhatLinksHere extends SpecialPage {
 
        function execute( $par ) {
                $out = $this->getOutput();
-               
+
                $this->setHeaders();
 
                $opts = new FormOptions();
@@ -268,6 +268,9 @@ class SpecialWhatLinksHere extends SpecialPage {
        }
 
        protected function listItem( $row, $nt, $notClose = false ) {
+               global $wgLang;
+               $dirmark = $wgLang->getDirMark();
+
                # local message cache
                static $msgcache = null;
                if ( $msgcache === null ) {
@@ -310,7 +313,6 @@ 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 $dirmark $wlh\n" :
                        Xml::tags( 'li', null, "$link $propsText $dirmark $wlh" ) . "\n";