Documentation
authorSam Reed <reedy@users.mediawiki.org>
Thu, 10 Nov 2011 20:50:21 +0000 (20:50 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 10 Nov 2011 20:50:21 +0000 (20:50 +0000)
includes/api/ApiUpload.php

index 17262ec..18117dd 100644 (file)
@@ -222,9 +222,10 @@ class ApiUpload extends ApiBase {
                $request = $this->getMain()->getRequest();
 
                // chunk or one and only one of the following parameters is needed
-               if(!$this->mParams['chunk'])
+               if( !$this->mParams['chunk'] ) {
                        $this->requireOnlyOneParameter( $this->mParams,
-                                       'filekey', 'file', 'url', 'statuskey' );
+                               'filekey', 'file', 'url', 'statuskey' );
+               }
 
                if ( $this->mParams['statuskey'] ) {
                        $this->checkAsyncDownloadEnabled();