X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fgallery%2FPackedImageGallery.php;h=2e4836a583fc02ab65de5b96ad19d82f7df04fff;hb=fb7b3eebeb8de47eb42e8d6ccf204106a2d6d9e4;hp=52a49ddbc0a31ac16b1e15d7d76e7514cebd6aa4;hpb=d98fd55e11dc6ab9f04d4810985b04ca39dfc3dd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/gallery/PackedImageGallery.php b/includes/gallery/PackedImageGallery.php index 52a49ddbc0..2e4836a583 100644 --- a/includes/gallery/PackedImageGallery.php +++ b/includes/gallery/PackedImageGallery.php @@ -21,8 +21,8 @@ */ class PackedImageGallery extends TraditionalImageGallery { - function __construct( $mode = 'traditional' ) { - parent::__construct( $mode ); + function __construct( $mode = 'traditional', IContextSource $context = null ) { + parent::__construct( $mode, $context ); // Does not support per row option. $this->mPerRow = 0; } @@ -60,10 +60,10 @@ class PackedImageGallery extends TraditionalImageGallery { } // self::SCALE_FACTOR so the js has some room to manipulate sizes. - return array( + return [ 'width' => $width * self::SCALE_FACTOR, 'height' => $this->mHeights * self::SCALE_FACTOR, - ); + ]; } protected function getThumbDivWidth( $thumbWidth ) { @@ -98,7 +98,7 @@ class PackedImageGallery extends TraditionalImageGallery { * @return array */ protected function getModules() { - return array( 'mediawiki.page.gallery' ); + return [ 'mediawiki.page.gallery' ]; } /**