From 5bbd79c59523b28ba3f0de2e16949379daf1366d Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 6 Aug 2016 20:32:08 -0700 Subject: [PATCH] SpecialShortPages: Use LinkRenderer instead of Linker::link() Change-Id: I1ed13e5d056e553a2363f9a3036dc63aefaf851a --- includes/specials/SpecialShortpages.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index 20f2fc8369..a76b511d0d 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -104,19 +104,20 @@ class ShortPagesPage extends QueryPage { Linker::getInvalidTitleDescription( $this->getContext(), $result->namespace, $result->title ) ); } - $hlink = Linker::linkKnown( + $linkRenderer = $this->getLinkRenderer(); + $hlink = $linkRenderer->makeKnownLink( $title, - $this->msg( 'hist' )->escaped(), + $this->msg( 'hist' )->text(), [], [ 'action' => 'history' ] ); $hlinkInParentheses = $this->msg( 'parentheses' )->rawParams( $hlink )->escaped(); if ( $this->isCached() ) { - $plink = Linker::link( $title ); + $plink = $linkRenderer->makeLink( $title ); $exists = $title->exists(); } else { - $plink = Linker::linkKnown( $title ); + $plink = $linkRenderer->makeKnownLink( $title ); $exists = true; } -- 2.20.1