(bug 28076) Thumbnail height limited to 360 pixels on Special:Listfiles
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 30 Apr 2011 18:50:37 +0000 (18:50 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 30 Apr 2011 18:50:37 +0000 (18:50 +0000)
RELEASE-NOTES
includes/specials/SpecialListfiles.php

index f207d3d..13e2a10 100644 (file)
@@ -256,6 +256,7 @@ PHP if you have not done so prior to upgrading MediaWiki.
 * (bug 28719) Do not call mLinkHolders __destruct explicitly
 * (bug 21196) Article::getContributors() no longer fails on PostgreSQL.
 * (bug 28752) XCache doesn't work in CLI mode.
+* (bug 28076) Thumbnail height limited to 360 pixels on Special:Listfiles 
 
 === API changes in 1.18 ===
 * (bug 26339) Throw warning when truncating an overlarge API result.
index ca6e8aa..5327e20 100644 (file)
@@ -188,7 +188,7 @@ class ImageListPager extends TablePager {
                switch ( $field ) {
                        case 'thumb':
                                $file = wfLocalFile( $value );
-                               $thumb = $file->transform( array( 'width' => 180 ) );
+                               $thumb = $file->transform( array( 'width' => 180, 'height' => 360 ) );
                                return $thumb->toHtml( array( 'desc-link' => true ) );
                        case 'img_timestamp':
                                return htmlspecialchars( $wgLang->timeanddate( $value, true ) );