r87171 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87170‎ | r87171 | r87172 >
Date:18:50, 30 April 2011
Author:btongminh
Status:ok
Tags:
Comment:
(bug 28076) Thumbnail height limited to 360 pixels on Special:Listfiles
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/specials/SpecialListfiles.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialListfiles.php
@@ -188,7 +188,7 @@
189189 switch ( $field ) {
190190 case 'thumb':
191191 $file = wfLocalFile( $value );
192 - $thumb = $file->transform( array( 'width' => 180 ) );
 192+ $thumb = $file->transform( array( 'width' => 180, 'height' => 360 ) );
193193 return $thumb->toHtml( array( 'desc-link' => true ) );
194194 case 'img_timestamp':
195195 return htmlspecialchars( $wgLang->timeanddate( $value, true ) );
Index: trunk/phase3/RELEASE-NOTES
@@ -256,6 +256,7 @@
257257 * (bug 28719) Do not call mLinkHolders __destruct explicitly
258258 * (bug 21196) Article::getContributors() no longer fails on PostgreSQL.
259259 * (bug 28752) XCache doesn't work in CLI mode.
 260+* (bug 28076) Thumbnail height limited to 360 pixels on Special:Listfiles
260261
261262 === API changes in 1.18 ===
262263 * (bug 26339) Throw warning when truncating an overlarge API result.

Status & tagging log