output: Narrow Title type hint to LinkTarget
[lhc/web/wiklou.git] / includes / specials / SpecialApiHelp.php
index 74b474a..c725d10 100644 (file)
@@ -77,7 +77,7 @@ class SpecialApiHelp extends UnlistedSpecialPage {
                $main = new ApiMain( $this->getContext(), false );
                try {
                        $module = $main->getModuleFromPath( $moduleName );
-               } catch ( UsageException $ex ) {
+               } catch ( ApiUsageException $ex ) {
                        $this->getOutput()->addHTML( Html::rawElement( 'span', [ 'class' => 'error' ],
                                $this->msg( 'apihelp-no-such-module', $moduleName )->inContentLanguage()->parse()
                        ) );