From e3d610bba2a196a990a1e38b0126e34bb92626d8 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 11 Jul 2015 11:35:34 +0200 Subject: [PATCH] Pass context to parent constructor in PackedImageGallery This avoids a "ContextSource::getContext called without context." Change-Id: Ib17139d4be3bf990acff1a1a435d6a7437b6f443 --- includes/gallery/PackedImageGallery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1