Merge "Add autocomplete for WhatLinksHere subpages"
[lhc/web/wiklou.git] / includes / CategoryViewer.php
index 4d23ed2..1a09d44 100644 (file)
@@ -152,7 +152,7 @@ class CategoryViewer extends ContextSource {
                        $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() );
                        }