mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-11 17:02:02 +00:00
Make sure pithumbsize set width and not height
This unifies image thumbnail sizes so instead of being random image sizes, it would be only one thumbsize. Bug: T323223 Change-Id: Ib7a7a5bce3ce10e60819e6ca056fe30f11e969a5
This commit is contained in:
parent
9902ffb55c
commit
8fe805f25e
|
@ -173,7 +173,6 @@ class ApiQueryPageImages extends ApiQueryBase {
|
|||
if ( isset( $prop['thumbnail'] ) ) {
|
||||
$thumb = $file->transform( [
|
||||
'width' => $size,
|
||||
'height' => $size,
|
||||
'lang' => $lang
|
||||
] );
|
||||
if ( $thumb && $thumb->getUrl() ) {
|
||||
|
|
Loading…
Reference in a new issue