X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fgallery%2FSlideshowImageGallery.php;h=f29c565fc9945b1ba72ed93da1a957e0baee17c6;hb=4fad94948359ab67e312355534977138754c123b;hp=3f0c9329d09199b7856b13b2ca07683c99f67802;hpb=cf8b6e8b21713eebfac96dfbf2f3ccb88c8032e3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/gallery/SlideshowImageGallery.php b/includes/gallery/SlideshowImageGallery.php index 3f0c9329d0..f29c565fc9 100644 --- a/includes/gallery/SlideshowImageGallery.php +++ b/includes/gallery/SlideshowImageGallery.php @@ -34,4 +34,8 @@ class SlideshowImageGallery extends TraditionalImageGallery { protected function getModules() { return [ 'mediawiki.page.gallery.slideshow' ]; } + + public function setAdditionalOptions( $params ) { + $this->mAttribs['data-showthumbnails'] = isset( $params['showthumbnails'] ); + } }