X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMostlinkedtemplates.php;h=dee1c8ec5b9ab55af505c1f5f3d44056e140395c;hb=512a187a2f58b020fb866f0fdc5703091f9e47e3;hp=7fcb9d869cb35cc3ed530af6d6b51fb9f93fd292;hpb=37751ee23e7b7019307eafe36f18c8450bf2e420;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMostlinkedtemplates.php b/includes/specials/SpecialMostlinkedtemplates.php index 7fcb9d869c..dee1c8ec5b 100644 --- a/includes/specials/SpecialMostlinkedtemplates.php +++ b/includes/specials/SpecialMostlinkedtemplates.php @@ -22,6 +22,9 @@ * @author Rob Church */ +use Wikimedia\Rdbms\ResultWrapper; +use Wikimedia\Rdbms\IDatabase; + /** * Special page lists templates with a large number of * transclusion links, i.e. "most used" templates @@ -104,7 +107,7 @@ class MostlinkedTemplatesPage extends QueryPage { } return $this->getLanguage()->specialList( - Linker::link( $title ), + $this->getLinkRenderer()->makeLink( $title ), $this->makeWlhLink( $title, $result ) ); } @@ -118,9 +121,9 @@ class MostlinkedTemplatesPage extends QueryPage { */ private function makeWlhLink( $title, $result ) { $wlh = SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() ); - $label = $this->msg( 'ntransclusions' )->numParams( $result->value )->escaped(); + $label = $this->msg( 'ntransclusions' )->numParams( $result->value )->text(); - return Linker::link( $wlh, $label ); + return $this->getLinkRenderer()->makeLink( $wlh, $label ); } protected function getGroupName() {