From: Kunal Mehta Date: Sun, 7 Aug 2016 03:34:28 +0000 (-0700) Subject: SpecialUploadStash: Use LinkRenderer instead of Linker::link() X-Git-Tag: 1.31.0-rc.0~6121^2 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=d678cbb6ba8af7a3139d096de9254b10c220c35b;p=lhc%2Fweb%2Fwiklou.git SpecialUploadStash: Use LinkRenderer instead of Linker::link() Change-Id: I8c5b05093bc2b62c58a109c28e48530e39e945d2 --- 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 ) {