Localisation updates from https://translatewiki.net.
[lhc/web/wiklou.git] / includes / specials / SpecialWhatlinkshere.php
index 5677ac8..c2adf8d 100644 (file)
@@ -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 );