Removing a comment, throwing the exception after creating it.
authorRotem Liss <rotem@users.mediawiki.org>
Tue, 30 Oct 2007 09:48:36 +0000 (09:48 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Tue, 30 Oct 2007 09:48:36 +0000 (09:48 +0000)
includes/SpecialUpload.php

index 5eed9ad..9ef7bd4 100644 (file)
@@ -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}`" );
                }
        }