From 9142fbfb03ff0d88fb95d146dbd83bbba61db45b Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Mon, 1 Nov 2010 19:36:29 +0000 Subject: [PATCH] Follow up r75749. Fixes a case with a linked thumbnail of a non-existant image. Apparently makeThumbLink2() does handle non-existing files. --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index d0e288f3b2..8d1bf34b95 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -492,7 +492,7 @@ class Linker { } } - if ( $file && ( isset( $fp['thumbnail'] ) || isset( $fp['manualthumb'] ) || isset( $fp['framed'] ) ) ) { + if ( isset( $fp['thumbnail'] ) || isset( $fp['manualthumb'] ) || isset( $fp['framed'] ) ) { global $wgContLang; # Create a thumbnail. Alignment depends on language # writing direction, # right aligned for left-to-right- -- 2.20.1