X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMediaStatistics.php;h=a88767ae4ddaa58e9d9c3c96fd600dda4aa39850;hp=7683ad8bebdd786815b018164353119cc7da23b5;hb=49748181dd56ec97e7ba7c13e684a16abceb3cc0;hpb=6124d71e25c2894c3e025c20e81ff742045e8cd5 diff --git a/includes/specials/SpecialMediaStatistics.php b/includes/specials/SpecialMediaStatistics.php index 7683ad8beb..a88767ae4d 100644 --- a/includes/specials/SpecialMediaStatistics.php +++ b/includes/specials/SpecialMediaStatistics.php @@ -22,6 +22,8 @@ * @author Brian Wolff */ +use Wikimedia\Rdbms\ResultWrapper; + /** * @ingroup SpecialPage */ @@ -174,10 +176,11 @@ class MediaStatisticsPage extends QueryPage { */ protected function outputTableRow( $mime, $count, $bytes ) { $mimeSearch = SpecialPage::getTitleFor( 'MIMEsearch', $mime ); + $linkRenderer = $this->getLinkRenderer(); $row = Html::rawElement( 'td', [], - Linker::link( $mimeSearch, htmlspecialchars( $mime ) ) + $linkRenderer->makeLink( $mimeSearch, $mime ) ); $row .= Html::element( 'td', @@ -338,7 +341,7 @@ class MediaStatisticsPage extends QueryPage { * we need to implement since abstract in parent class. * * @param Skin $skin - * @param stdObject $result Result row + * @param stdClass $result Result row * @return bool|string|void * @throws MWException */