Merge "mediawiki.jqueryMsg: Refactor "Match PHP parser" test suite"
[lhc/web/wiklou.git] / includes / specials / SpecialNewimages.php
index bc16925..94e77e3 100644 (file)
@@ -141,7 +141,7 @@ class NewFilesPager extends ReverseChronologicalPager {
                        $mode = $this->getRequest()->getVal( 'gallerymode', null );
                        try {
                                $this->gallery = ImageGalleryBase::factory( $mode, $this->getContext() );
-                       } catch ( MWException $e ) {
+                       } catch ( Exception $e ) {
                                // User specified something invalid, fallback to default.
                                $this->gallery = ImageGalleryBase::factory( false, $this->getContext() );
                        }