LIMIT_SML2, LIMIT_BIG2 are in ApiBase, not ApiMain
authorSam Reed <reedy@users.mediawiki.org>
Thu, 22 Jul 2010 21:52:06 +0000 (21:52 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 22 Jul 2010 21:52:06 +0000 (21:52 +0000)
includes/api/ApiUpload.php

index f3c3e4e..7c51ca6 100644 (file)
@@ -270,7 +270,9 @@ class ApiUpload extends ApiBase {
                $this->verifyUpload();
 
                $warnings = $this->checkForWarnings();
-               if ( isset( $warnings ) ) return $warnings;
+               if ( isset( $warnings ) ) {
+            return $warnings;
+        }
 
                // Use comment as initial page text by default
                if ( is_null( $this->mParams['text'] ) ) {