Pass context to parent constructor in PackedImageGallery
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 11 Jul 2015 09:35:34 +0000 (11:35 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 11 Jul 2015 09:35:34 +0000 (11:35 +0200)
This avoids a "ContextSource::getContext called without context."

Change-Id: Ib17139d4be3bf990acff1a1a435d6a7437b6f443

includes/gallery/PackedImageGallery.php

index 52a49dd..821c85f 100644 (file)
@@ -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;
        }