Follow up r75749. Fixes a case with a linked thumbnail of a non-existant image.
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 1 Nov 2010 19:36:29 +0000 (19:36 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 1 Nov 2010 19:36:29 +0000 (19:36 +0000)
Apparently makeThumbLink2() does handle non-existing files.

includes/Linker.php

index d0e288f..8d1bf34 100644 (file)
@@ -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-