Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php |
— | — | @@ -437,7 +437,7 @@ |
438 | 438 | |
439 | 439 | $this->showSuccess( $this->submitType ); |
440 | 440 | } else if( $this->submitType === 'accept' ) { |
441 | | - global $wgAuth, $wgConfirmAccountSaveInfo; |
| 441 | + global $wgAuth, $wgConfirmAccountSaveInfo, $wgAllowAccountRequestFiles; |
442 | 442 | # Now create user and check if the name is valid |
443 | 443 | $user = User::newFromName( $this->mUsername, 'creatable' ); |
444 | 444 | if( is_null($user) ) { |
— | — | @@ -478,7 +478,7 @@ |
479 | 479 | if( $wgConfirmAccountSaveInfo ) { |
480 | 480 | # Copy any attached files to new storage group |
481 | 481 | $key = $row->acr_storage_key; |
482 | | - if( $key ) { |
| 482 | + if( $wgAllowAccountRequestFiles && $key ) { |
483 | 483 | $storeOld = FileStore::get( 'accountreqs' ); |
484 | 484 | $storeNew = FileStore::get( 'accountcreds' ); |
485 | 485 | if( !$storeOld || !$storeNew ) { |