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:
Amir Sarabadani 2022-11-21 19:52:44 +01:00
parent 9902ffb55c
commit 8fe805f25e

View file

@ -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() ) {