From: Conrad Irwin Date: Fri, 9 Apr 2010 16:58:42 +0000 (+0000) Subject: Fix OggHandler/Mp3Handler etc. after r61912 r61918 X-Git-Tag: 1.31.0-rc.0~37201 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=2b64de575d3c0fe52da0aa717615775e36013fb5;hp=a8393a4164cd2f1c8a7d8e3d9135a526be673d9c;p=lhc%2Fweb%2Fwiklou.git Fix OggHandler/Mp3Handler etc. after r61912 r61918 --- diff --git a/includes/Linker.php b/includes/Linker.php index c049f47357..9ff9301a49 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -468,7 +468,7 @@ class Linker { if ( $file && !isset( $hp['width'] ) ) { $hp['width'] = $file->getWidth( $page ); - if( isset( $fp['thumbnail'] ) || isset( $fp['framed'] ) || isset( $fp['frameless'] ) ) { + if( isset( $fp['thumbnail'] ) || isset( $fp['framed'] ) || isset( $fp['frameless'] ) || !$hp['width'] ) { $wopt = $wgUser->getOption( 'thumbsize' ); if( !isset( $wgThumbLimits[$wopt] ) ) {