From: Rotem Liss Date: Tue, 30 Oct 2007 09:48:36 +0000 (+0000) Subject: Removing a comment, throwing the exception after creating it. X-Git-Tag: 1.31.0-rc.0~51054 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=6d4c50a51b7a19803e43235d7185f0875f42aaed;p=lhc%2Fweb%2Fwiklou.git Removing a comment, throwing the exception after creating it. --- diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 5eed9ad3d8..9ef7bd43f9 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -345,10 +345,7 @@ class UploadForm { break; default: - /* TODO: Each case returns instead of breaking to maintain the highest level of compatibility during branch merging. - They should be reviewed and corrected separatelly. - */ - new MWException( __METHOD__ . ": Unknown value `{$value}`" ); + throw new MWException( __METHOD__ . ": Unknown value `{$value}`" ); } }