From d678cbb6ba8af7a3139d096de9254b10c220c35b Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 6 Aug 2016 20:34:28 -0700 Subject: [PATCH] SpecialUploadStash: Use LinkRenderer instead of Linker::link() Change-Id: I8c5b05093bc2b62c58a109c28e48530e39e945d2 --- includes/specials/SpecialUploadStash.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index 555fe5ce14..14123242a1 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -391,17 +391,21 @@ class SpecialUploadStash extends UnlistedSpecialPage { if ( $files && count( $files ) ) { sort( $files ); $fileListItemsHtml = ''; + $linkRenderer = $this->getLinkRenderer(); foreach ( $files as $file ) { - $itemHtml = Linker::linkKnown( $this->getPageTitle( "file/$file" ), htmlspecialchars( $file ) ); + $itemHtml = $linkRenderer->makeKnownLink( + $this->getPageTitle( "file/$file" ), + $file + ); try { $fileObj = $this->stash->getFile( $file ); $thumb = $fileObj->generateThumbName( $file, [ 'width' => 220 ] ); $itemHtml .= $this->msg( 'word-separator' )->escaped() . $this->msg( 'parentheses' )->rawParams( - Linker::linkKnown( + $linkRenderer->makeKnownLink( $this->getPageTitle( "thumb/$file/$thumb" ), - $this->msg( 'uploadstash-thumbnail' )->escaped() + $this->msg( 'uploadstash-thumbnail' )->text() ) )->escaped(); } catch ( Exception $e ) { -- 2.20.1