Adjust GalleryGetModes call to fit Hooks::run() signature.
Follow up: I33462a8b52502ed76aeb163b66e3704c8618ba23
Change-Id: I916dade31d6d67de4bb82582cc71585e83fec1c9
'GalleryGetModes': Get list of classes that can render different modes of a
gallery
-$modeArray: An associative array mapping mode names to classes that implement
+&$modeArray: An associative array mapping mode names to classes that implement
that mode. It is expected all registered classes are a subclass of
ImageGalleryBase.
'packed-overlay' => 'PackedOverlayImageGallery',
);
// Allow extensions to make a new gallery format.
- Hooks::run( 'GalleryGetModes', self::$modeMapping );
+ Hooks::run( 'GalleryGetModes', array( &self::$modeMapping ) );
}
}