Index: branches/extensionless-files/includes/filerepo/FSRepo.php |
— | — | @@ -518,17 +518,21 @@ |
519 | 519 | $srcPath = "{$this->directory}/$srcRel"; |
520 | 520 | $archivePath = "{$this->deletedDir}/$archiveRel"; |
521 | 521 | $good = true; |
| 522 | + wfDebugLog( 'filedelete',__METHOD__.": moving {$srcPath} to {$archiveRel}"); |
522 | 523 | if ( file_exists( $archivePath ) ) { |
523 | 524 | # A file with this content hash is already archived |
524 | 525 | if ( !@unlink( $srcPath ) ) { |
| 526 | + wfDebugLog( 'filedelete',__METHOD__.": filedeleteerror {$srcPath}"); |
525 | 527 | $status->error( 'filedeleteerror', $srcPath ); |
526 | 528 | $good = false; |
527 | 529 | } |
528 | 530 | } else{ |
529 | 531 | if ( !@rename( $srcPath, $archivePath ) ) { |
| 532 | + wfDebugLog( 'filedelete',__METHOD__.": filerenameerror srcPath: {$srcPath} archivePath: {$archivePath}"); |
530 | 533 | $status->error( 'filerenameerror', $srcPath, $archivePath ); |
531 | 534 | $good = false; |
532 | 535 | } else { |
| 536 | + wfDebugLog( 'filedelete',__METHOD__.": success creating {$archivePath}"); |
533 | 537 | $this->chmod( $archivePath ); |
534 | 538 | } |
535 | 539 | } |