X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWhatlinkshere.php;h=37404427f0885c3656fbd49578b479a479a3c989;hb=20d669c4c3af98fcdff753c729aa4c106c6bd6a7;hp=078677e95e808e76788d289cfe28adf822718c80;hpb=470e72647fae71055b36c329934168ba99796d66;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 078677e95e..37404427f0 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -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";