Index: trunk/phase3/includes/Linker.php |
— | — | @@ -544,15 +544,6 @@ |
545 | 545 | } |
546 | 546 | } |
547 | 547 | |
548 | | - if ( $file && $hp['width'] ) { |
549 | | - # Do not present an image bigger than the source, for bitmap-style images |
550 | | - # This is a hack to maintain compatibility with arbitrary pre-1.10 behaviour |
551 | | - $srcWidth = $file->getWidth( $page ); |
552 | | - if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) { |
553 | | - $hp['width'] = $srcWidth; |
554 | | - } |
555 | | - } |
556 | | - |
557 | 548 | if ( isset( $fp['thumbnail'] ) || isset( $fp['manualthumb'] ) || isset( $fp['framed'] ) ) { |
558 | 549 | |
559 | 550 | # Create a thumbnail. Alignment depends on language |
— | — | @@ -643,6 +634,12 @@ |
644 | 635 | // Use image dimensions, don't scale |
645 | 636 | $thumb = $file->getUnscaledThumb( $page ); |
646 | 637 | } else { |
| 638 | + # Do not present an image bigger than the source, for bitmap-style images |
| 639 | + # This is a hack to maintain compatibility with arbitrary pre-1.10 behaviour |
| 640 | + $srcWidth = $file->getWidth( $page ); |
| 641 | + if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) { |
| 642 | + $hp['width'] = $srcWidth; |
| 643 | + } |
647 | 644 | $thumb = $file->transform( $hp ); |
648 | 645 | } |
649 | 646 | |
— | — | @@ -1376,3 +1373,7 @@ |
1377 | 1374 | return $out; |
1378 | 1375 | } |
1379 | 1376 | } |
| 1377 | + |
| 1378 | + |
| 1379 | + |
| 1380 | + |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -59,7 +59,6 @@ |
60 | 60 | * Strike the link to the redirect rather than using an asterisk in Special:Listredirects |
61 | 61 | * (bug 11355) Fix false positives in Safe Mode and other config detection |
62 | 62 | when boolean settings are disabled with 'Off' via php_admin_value/php_value |
63 | | -* Do not present an image bigger than the source, for bitmap-style images |
64 | 63 | |
65 | 64 | === API changes in 1.12 === |
66 | 65 | |