http://www.mediawiki.org/wiki/Special:Code/MediaWiki/61912
Revision: 61912 Author: overlordq Date: 2010-02-03 06:21:25 +0000 (Wed, 03 Feb 2010) Log Message: ----------- Fix for not being able to override thumbnail height Modified Paths: -------------- trunk/phase3/includes/Linker.php Modified: trunk/phase3/includes/Linker.php =================================================================== --- trunk/phase3/includes/Linker.php 2010-02-03 06:19:47 UTC (rev 61911) +++ trunk/phase3/includes/Linker.php 2010-02-03 06:21:25 UTC (rev 61912) @@ -468,7 +468,7 @@ if ( $file && !isset( $hp['width'] ) ) { $hp['width'] = $file->getWidth( $page ); - if( isset( $fp['thumbnail'] ) || isset( $fp['framed'] ) || isset( $fp['frameless'] ) || !$hp['width'] ) { + if( ( isset( $fp['thumbnail'] ) || isset( $fp['framed'] ) || isset( $fp['frameless'] ) ) && !$hp['height'] ) { $wopt = $wgUser->getOption( 'thumbsize' ); if( !isset( $wgThumbLimits[$wopt] ) ) { _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs