From 01b8ce442368d8933943fad256b458a114990afc Mon Sep 17 00:00:00 2001 From: Gilles Dubuc Date: Mon, 10 Nov 2014 18:21:54 +0100 Subject: [PATCH] Add debug call to check that config passing to the image scalers works Change-Id: I2d1f7de7985e230752cdc8a9c4accae027e5592f Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/600 --- includes/filerepo/file/File.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/filerepo/file/File.php b/includes/filerepo/file/File.php index 7563d642c6..c82be507e2 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -471,6 +471,8 @@ abstract class File { public function getThumbnailBucket( $desiredWidth, $page = 1 ) { global $wgThumbnailBuckets, $wgThumbnailMinimumBucketDistance; + wfDebugLog( 'thumbnail', 'thumbnail buckets ' . json_encode( $wgThumbnailBuckets ) ); + $imageWidth = $this->getWidth( $page ); if ( $imageWidth === false ) { -- 2.20.1