From: Kunal Mehta Date: Wed, 1 Jun 2016 03:38:10 +0000 (-0700) Subject: SpecialBotPasswords: Use LinkRenderer instead of Linker::link() X-Git-Tag: 1.31.0-rc.0~6542^2 X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites_tous%22%2C%22%22%29.%20%22?a=commitdiff_plain;h=6bd5ee02a733c25474550adfbacdc41496f13498;p=lhc%2Fweb%2Fwiklou.git SpecialBotPasswords: Use LinkRenderer instead of Linker::link() Change-Id: I939c3d639d8efc0a2f838cf12ff18c9e9795f114 --- 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 ), ]; }