r64806 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64805‎ | r64806 | r64807 >
Date:16:58, 9 April 2010
Author:conrad
Status:ok
Tags:
Comment:
Fix OggHandler/Mp3Handler etc. after r61912 r61918
Modified paths:
  • /trunk/phase3/includes/Linker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Linker.php
@@ -468,7 +468,7 @@
469469 if ( $file && !isset( $hp['width'] ) ) {
470470 $hp['width'] = $file->getWidth( $page );
471471
472 - if( isset( $fp['thumbnail'] ) || isset( $fp['framed'] ) || isset( $fp['frameless'] ) ) {
 472+ if( isset( $fp['thumbnail'] ) || isset( $fp['framed'] ) || isset( $fp['frameless'] ) || !$hp['width'] ) {
473473 $wopt = $wgUser->getOption( 'thumbsize' );
474474
475475 if( !isset( $wgThumbLimits[$wopt] ) ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r61912Fix for not being able to override thumbnail heightoverlordq06:21, 3 February 2010
r61918Followup to r61912, make sure hight is actually given, also dont ignore if up...overlordq08:53, 3 February 2010

Status & tagging log