Index: branches/uploadwizard/phase3/includes/api/ApiUpload.php |
— | — | @@ -182,13 +182,14 @@ |
183 | 183 | * @return bool |
184 | 184 | */ |
185 | 185 | protected function selectUploadModule() { |
| 186 | + global $wgAllowAsyncCopyUploads; |
186 | 187 | $request = $this->getMain()->getRequest(); |
187 | 188 | |
188 | 189 | // One and only one of the following parameters is needed |
189 | 190 | $this->requireOnlyOneParameter( $this->mParams, |
190 | 191 | 'sessionkey', 'file', 'url', 'statuskey' ); |
191 | 192 | |
192 | | - if ( $this->mParams['statuskey'] ) { |
| 193 | + if ( $wgAllowAsyncCopyUploads && $this->mParams['statuskey'] ) { |
193 | 194 | // Status request for an async upload |
194 | 195 | $sessionData = UploadFromUrlJob::getSessionData( $this->mParams['statuskey'] ); |
195 | 196 | if ( !isset( $sessionData['result'] ) ) { |