X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWhatlinkshere.php;h=1d3ffd795ab5ab3e79ae37cfc671ef7289bb64a1;hb=0f7e760334df920adca5f6340814ba028b95dae0;hp=5677ac802bd27c5ee6933f475e9b179a0e8785da;hpb=df240f953745fdee98b04edb85edeb49ebea3854;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 5677ac802b..1d3ffd795a 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -208,15 +208,18 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { if ( $hidelinks || $hidetrans || $hideredirs || $hideimages ) { $out->addHTML( $this->getFilterPanel() ); } - $msgKey = is_int( $namespace ) ? 'nolinkshere-ns-2' : 'nolinkshere-2'; - $link = $this->getLinkRenderer()->makeKnownLink( + $msgKey = is_int( $namespace ) ? 'nolinkshere-ns' : 'nolinkshere'; + $link = $this->getLinkRenderer()->makeLink( $this->target, null, [], $this->target->isRedirect() ? [ 'redirect' => 'no' ] : [] ); - $errMsg = $this->msg( $msgKey )->rawParams( $link )->parseAsBlock(); + $errMsg = $this->msg( $msgKey ) + ->params( $this->target->getPrefixedText() ) + ->rawParams( $link ) + ->parseAsBlock(); $out->addHTML( $errMsg ); $out->setStatusCode( 404 ); } @@ -282,14 +285,17 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { $out->addHTML( $this->whatlinkshereForm() ); $out->addHTML( $this->getFilterPanel() ); - $link = $this->getLinkRenderer()->makeKnownLink( + $link = $this->getLinkRenderer()->makeLink( $this->target, null, [], $this->target->isRedirect() ? [ 'redirect' => 'no' ] : [] ); - $msg = $this->msg( 'linkshere-2' )->rawParams( $link )->parseAsBlock(); + $msg = $this->msg( 'linkshere' ) + ->params( $this->target->getPrefixedText() ) + ->rawParams( $link ) + ->parseAsBlock(); $out->addHTML( $msg ); $prevnext = $this->getPrevNext( $prevId, $nextId ); @@ -517,7 +523,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { ] ); - $f .= ' ' . + $f .= "\u{00A0}" . Xml::checkLabel( $this->msg( 'invert' )->text(), 'invert',