Change the default for wgThumbnailMinimumBucketDistance
authorGilles Dubuc <gdubuc@wikimedia.org>
Tue, 22 Jul 2014 17:20:12 +0000 (13:20 -0400)
committerGergő Tisza <gtisza@wikimedia.org>
Tue, 22 Jul 2014 17:51:40 +0000 (17:51 +0000)
This has no effect while $wgThumbnailBuckets is null (the default),
but once buckets are enabled, 0 is a poor setting for the minimum
distance. 50 is arbitrary but definitely better than leaving it at 0.

Change-Id: I845af18cfd00627b26f6325c1d1a512a492a8f7c

includes/DefaultSettings.php

index 7c81294..91ab25a 100644 (file)
@@ -1237,7 +1237,7 @@ $wgThumbnailBuckets = null;
  * If we want to render a thumbnail of width 220px, the 512px bucket will be used,
  * because 220 + 50 = 270 and the closest bucket bigger than 270px is 512.
  */
-$wgThumbnailMinimumBucketDistance = 0;
+$wgThumbnailMinimumBucketDistance = 50;
 
 /**
  * Default parameters for the "<gallery>" tag