X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnusedtemplates.php;h=f73be438391297beeb2c0dcb43d93792e19e7720;hb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695;hp=b0a2579fe005396af94ed7f2a48599b29e0d737a;hpb=ae69acacf567077b3f49d1fe6c3f3770e72a9093;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUnusedtemplates.php b/includes/specials/SpecialUnusedtemplates.php index b0a2579fe0..f73be43839 100644 --- a/includes/specials/SpecialUnusedtemplates.php +++ b/includes/specials/SpecialUnusedtemplates.php @@ -71,16 +71,17 @@ class UnusedtemplatesPage extends QueryPage { * @return string */ function formatResult( $skin, $result ) { + $linkRenderer = $this->getLinkRenderer(); $title = Title::makeTitle( NS_TEMPLATE, $result->title ); - $pageLink = Linker::linkKnown( + $pageLink = $linkRenderer->makeKnownLink( $title, null, [], [ 'redirect' => 'no' ] ); - $wlhLink = Linker::linkKnown( + $wlhLink = $linkRenderer->makeKnownLink( SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() ), - $this->msg( 'unusedtemplateswlh' )->escaped() + $this->msg( 'unusedtemplateswlh' )->text() ); return $this->getLanguage()->specialList( $pageLink, $wlhLink );