From d3d3a966c5297f4e831f79d27b06f3fa35e8a298 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 24 Nov 2013 19:52:45 +0100 Subject: [PATCH] Replace Linker::link() by linkKnown() Change-Id: I70b15ea6352f65fcff70fcc85e743441e4fcab08 --- includes/gallery/TraditionalImageGallery.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/includes/gallery/TraditionalImageGallery.php b/includes/gallery/TraditionalImageGallery.php index 05c612b003..9d01688a8b 100644 --- a/includes/gallery/TraditionalImageGallery.php +++ b/includes/gallery/TraditionalImageGallery.php @@ -103,12 +103,9 @@ class TraditionalImageGallery extends ImageGalleryBase { # The image is blacklisted, just show it as a text link. $thumbhtml = "\n\t\t\t" . '
' . - Linker::link( + Linker::linkKnown( $nt, - htmlspecialchars( $nt->getText() ), - array(), - array(), - array( 'known', 'noclasses' ) + htmlspecialchars( $nt->getText() ) ) . '
'; } elseif ( !( $thumb = $img->transform( $transformOptions ) ) ) { @@ -168,12 +165,9 @@ class TraditionalImageGallery extends ImageGalleryBase { } $textlink = $this->mShowFilename ? - Linker::link( + Linker::linkKnown( $nt, - htmlspecialchars( $lang->truncate( $nt->getText(), $this->mCaptionLength ) ), - array(), - array(), - array( 'known', 'noclasses' ) + htmlspecialchars( $lang->truncate( $nt->getText(), $this->mCaptionLength ) ) ) . "
\n" : ''; -- 2.20.1