Index: trunk/extensions/CodeReview/SpecialCode.php |
— | — | @@ -83,7 +83,9 @@ |
84 | 84 | $view = new CodeRevisionStatusSetter( $params[0], $params[1] ); |
85 | 85 | break; |
86 | 86 | } |
87 | | - throw new MWException( "Invalid action specified" ); |
| 87 | + $wgOut->addWikiText( wfMsg('nosuchactiontext') ); |
| 88 | + $wgOut->returnToMain( null, SpecialPage::getTitleFor( 'Code' ) ); |
| 89 | + return; |
88 | 90 | } |
89 | 91 | } |
90 | 92 | $view->execute(); |