Merge "Get to the point about howto download Vector :p"
[lhc/web/wiklou.git] / includes / gallery / ImageGalleryBase.php
index b61a352..bb9a903 100644 (file)
@@ -87,6 +87,7 @@ abstract class ImageGalleryBase extends ContextSource {
         *
         * @param string|bool $mode Mode to use. False to use the default
         * @param IContextSource|null $context
+        * @return ImageGalleryBase
         * @throws MWException
         */
        static function factory( $mode = false, IContextSource $context = null ) {
@@ -119,7 +120,7 @@ abstract class ImageGalleryBase extends ContextSource {
                                'packed-overlay' => 'PackedOverlayImageGallery',
                        );
                        // Allow extensions to make a new gallery format.
-                       wfRunHooks( 'GalleryGetModes', self::$modeMapping );
+                       Hooks::run( 'GalleryGetModes', self::$modeMapping );
                }
        }