From: umherirrender Date: Sat, 11 Jul 2015 09:35:34 +0000 (+0200) Subject: Pass context to parent constructor in PackedImageGallery X-Git-Tag: 1.31.0-rc.0~10796^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=e3d610bba2a196a990a1e38b0126e34bb92626d8;p=lhc%2Fweb%2Fwiklou.git Pass context to parent constructor in PackedImageGallery This avoids a "ContextSource::getContext called without context." Change-Id: Ib17139d4be3bf990acff1a1a435d6a7437b6f443 --- diff --git a/includes/gallery/PackedImageGallery.php b/includes/gallery/PackedImageGallery.php index 52a49ddbc0..821c85fb71 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; }