From 6bd5ee02a733c25474550adfbacdc41496f13498 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Tue, 31 May 2016 20:38:10 -0700 Subject: [PATCH] SpecialBotPasswords: Use LinkRenderer instead of Linker::link() Change-Id: I939c3d639d8efc0a2f838cf12ff18c9e9795f114 --- includes/specials/SpecialBotPasswords.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/specials/SpecialBotPasswords.php b/includes/specials/SpecialBotPasswords.php index 1027f1f6e8..7e330aa63f 100644 --- a/includes/specials/SpecialBotPasswords.php +++ b/includes/specials/SpecialBotPasswords.php @@ -162,6 +162,7 @@ class SpecialBotPasswords extends FormSpecialPage { ]; } else { + $linkRenderer = $this->getLinkRenderer(); $dbr = BotPassword::getDB( DB_SLAVE ); $res = $dbr->select( 'bot_passwords', @@ -174,12 +175,9 @@ class SpecialBotPasswords extends FormSpecialPage { 'section' => 'existing', 'type' => 'info', 'raw' => true, - 'default' => Linker::link( + 'default' => $linkRenderer->makeKnownLink( $this->getPageTitle( $row->bp_app_id ), - htmlspecialchars( $row->bp_app_id ), - [], - [], - [ 'known' ] + $row->bp_app_id ), ]; } -- 2.20.1