X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fgallery%2FPackedImageGallery.php;h=2e4836a583fc02ab65de5b96ad19d82f7df04fff;hb=416975c3ac1bf838369846c2ba2e3217edcde2cb;hp=52a49ddbc0a31ac16b1e15d7d76e7514cebd6aa4;hpb=af9c5d49fd65c9351d6d12ddac5de6e7460736c5;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' ]; } /**