From 1347d5cd07f1fe64fd24f550015baa19edab84f7 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 5 Feb 2015 01:49:43 -0800 Subject: [PATCH] Fix doc comment on $wgResponsiveImages Doc comment referred to older implementation's data attributes. Updated to refer to the correct srcset attribute as settled on by browser makers, which was switched to long ago here. Change-Id: If2bc83dd41dd88d6480957ff4968111396c9fe98 --- includes/DefaultSettings.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index ab8742580e..3f7604d887 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1320,9 +1320,11 @@ $wgDirectoryMode = 0777; * Generate and use thumbnails suitable for screens with 1.5 and 2.0 pixel densities. * * This means a 320x240 use of an image on the wiki will also generate 480x360 and 640x480 - * thumbnails, output via data-src-1-5 and data-src-2-0. Runtime JavaScript switches the - * images in after loading the original low-resolution versions depending on the reported - * window.devicePixelRatio. + * thumbnails, output via the srcset attribute. + * + * On older browsers, a JavaScript polyfill switches the appropriate images in after loading + * the original low-resolution versions depending on the reported window.devicePixelRatio. + * The polyfill can be found in the jquery.hidpi module. */ $wgResponsiveImages = true; -- 2.20.1