X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Fgallery%2FImageGalleryBase.php;h=9ea97029c3d2cebad6d40ec06afb28b44ec4e08d;hb=9d6357bed1e4a6e667b4ef455f616e7a6745cae2;hp=c89c6b6c1e3b703b33347eb80087e5c7a625eae2;hpb=88a288bba313dd139970ab2a3e808502d81c085b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/gallery/ImageGalleryBase.php b/includes/gallery/ImageGalleryBase.php index c89c6b6c1e..9ea97029c3 100644 --- a/includes/gallery/ImageGalleryBase.php +++ b/includes/gallery/ImageGalleryBase.php @@ -98,7 +98,8 @@ abstract class ImageGalleryBase extends ContextSource { $mode = $wgContLang->lc( $mode ); if ( isset( self::$modeMapping[$mode] ) ) { - return new self::$modeMapping[$mode]( $mode, $context ); + $class = self::$modeMapping[$mode]; + return new $class( $mode, $context ); } else { throw new MWException( "No gallery class registered for mode $mode" ); }