Introduce MediaHandlerFactory to create MediaHandler objects
[lhc/web/wiklou.git] / includes / specials / SpecialBotPasswords.php
index 1027f1f..7e330aa 100644 (file)
@@ -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
                                        ),
                                ];
                        }