From: Derk-Jan Hartman Date: Mon, 1 Nov 2010 19:36:29 +0000 (+0000) Subject: Follow up r75749. Fixes a case with a linked thumbnail of a non-existant image. X-Git-Tag: 1.31.0-rc.0~34141 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=9142fbfb03ff0d88fb95d146dbd83bbba61db45b;p=lhc%2Fweb%2Fwiklou.git Follow up r75749. Fixes a case with a linked thumbnail of a non-existant image. Apparently makeThumbLink2() does handle non-existing files. --- 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-