SpecialMostlinkedCategories: Use LinkRenderer instead of Linker::link()
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 7 Aug 2016 03:37:21 +0000 (20:37 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 7 Aug 2016 03:37:21 +0000 (20:37 -0700)
Change-Id: Ib2f08246b173cf1d39e33d2e07490463bbab1bf5

includes/specials/SpecialMostlinkedcategories.php

index b8316f3..3ead08a 100644 (file)
@@ -94,7 +94,7 @@ class MostlinkedCategoriesPage extends QueryPage {
                }
 
                $text = $wgContLang->convert( $nt->getText() );
-               $plink = Linker::link( $nt, htmlspecialchars( $text ) );
+               $plink = $this->getLinkRenderer()->makeLink( $nt, $text );
                $nlinks = $this->msg( 'nmembers' )->numParams( $result->value )->escaped();
 
                return $this->getLanguage()->specialList( $plink, $nlinks );