X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnusedtemplates.php;h=f73be438391297beeb2c0dcb43d93792e19e7720;hb=3bb3c8b0ae092b2e667f6f33abfc98f9c205d53c;hp=b0a2579fe005396af94ed7f2a48599b29e0d737a;hpb=d42754e47722436ef52218f21a8e544a05ee9ad7;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 );