Brian Wolff has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/192960

Change subject: Add srcset for images in <gallery>
......................................................................

Add srcset for images in <gallery>

Bug: T64709
Change-Id: I476beb6cf072c5a38570143d1f56baa3f49d23d4
---
M includes/gallery/TraditionalImageGallery.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/60/192960/1

diff --git a/includes/gallery/TraditionalImageGallery.php 
b/includes/gallery/TraditionalImageGallery.php
index ac61067..7a0206c 100644
--- a/includes/gallery/TraditionalImageGallery.php
+++ b/includes/gallery/TraditionalImageGallery.php
@@ -133,6 +133,8 @@
 
                                $this->adjustImageParameters( $thumb, 
$imageParameters );
 
+                               Linker::processResponsiveImages( $img, $thumb, 
$transformOptions );
+
                                # Set both fixed width and min-height.
                                $thumbhtml = "\n\t\t\t"
                                        . '<div class="thumb" style="width: '

-- 
To view, visit https://gerrit.wikimedia.org/r/192960
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I476beb6cf072c5a38570143d1f56baa3f49d23d4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Brian Wolff <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to