Fix doc comment on $wgResponsiveImages
authorBrion Vibber <brion@pobox.com>
Thu, 5 Feb 2015 09:49:43 +0000 (01:49 -0800)
committerUmherirrender <umherirrender_de.wp@web.de>
Wed, 11 Feb 2015 18:08:50 +0000 (18:08 +0000)
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

index ab87425..3f7604d 100644 (file)
@@ -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;