Fix for not being able to override thumbnail height
authorOverlordQ <overlordq@users.mediawiki.org>
Wed, 3 Feb 2010 06:21:25 +0000 (06:21 +0000)
committerOverlordQ <overlordq@users.mediawiki.org>
Wed, 3 Feb 2010 06:21:25 +0000 (06:21 +0000)
includes/Linker.php

index 5d1f096..be2cc90 100644 (file)
@@ -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'] ) || !$hp['width'] ) {
+                       if( ( isset( $fp['thumbnail'] ) || isset( $fp['framed'] ) || isset( $fp['frameless'] ) ) && !$hp['height'] ) {
                                $wopt = $wgUser->getOption( 'thumbsize' );
 
                                if( !isset( $wgThumbLimits[$wopt] ) ) {