mAllowedRedirectParams = array( 'width', 'height' ); } // implement by redirecting through Special:Redirect/file function getRedirect( $par ) { $file = $par ?: $this->getRequest()->getText( 'file' ); if ( $file ) { $argument = "file/$file"; } else { $argument = 'file'; } return SpecialPage::getSafeTitleFor( 'Redirect', $argument ); } protected function getGroupName() { return 'media'; } }