r75819 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75818‎ | r75819 | r75820 >
Date:19:36, 1 November 2010
Author:hartman
Status:ok
Tags:
Comment:
Follow up r75749. Fixes a case with a linked thumbnail of a non-existant image.

Apparently makeThumbLink2() does handle non-existing files.
Modified paths:
  • /trunk/phase3/includes/Linker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Linker.php
@@ -492,7 +492,7 @@
493493 }
494494 }
495495
496 - if ( $file && ( isset( $fp['thumbnail'] ) || isset( $fp['manualthumb'] ) || isset( $fp['framed'] ) ) ) {
 496+ if ( isset( $fp['thumbnail'] ) || isset( $fp['manualthumb'] ) || isset( $fp['framed'] ) ) {
497497 global $wgContLang;
498498 # Create a thumbnail. Alignment depends on language
499499 # writing direction, # right aligned for left-to-right-

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75749Upscale thumbnails of SVGs if the nominal size of the SVG is smaller than the...hartman21:53, 31 October 2010

Status & tagging log