Index: trunk/phase3/includes/upload/UploadBase.php |
— | — | @@ -470,13 +470,13 @@ |
471 | 471 | * can accumulate in the temp directory. |
472 | 472 | * |
473 | 473 | * @param string $saveName - the destination filename |
474 | | - * @param string $tempName - the source temporary file to save |
| 474 | + * @param string $tempSrc - the source temporary file to save |
475 | 475 | * @return string - full path the stashed file, or false on failure |
476 | 476 | * @access private |
477 | 477 | */ |
478 | | - protected function saveTempUploadedFile( $saveName, $tempName ) { |
| 478 | + protected function saveTempUploadedFile( $saveName, $tempSrc ) { |
479 | 479 | $repo = RepoGroup::singleton()->getLocalRepo(); |
480 | | - $status = $repo->storeTemp( $saveName, $tempName ); |
| 480 | + $status = $repo->storeTemp( $saveName, $tempSrc ); |
481 | 481 | return $status; |
482 | 482 | } |
483 | 483 | |
Index: trunk/phase3/includes/filerepo/NullRepo.php |
— | — | @@ -14,6 +14,9 @@ |
15 | 15 | function storeTemp( $originalName, $srcPath ) { |
16 | 16 | return false; |
17 | 17 | } |
| 18 | + function append( $srcPath, $toAppendPath ){ |
| 19 | + return false; |
| 20 | + } |
18 | 21 | function publishBatch( $triplets, $flags = 0 ) { |
19 | 22 | return false; |
20 | 23 | } |
Index: trunk/phase3/includes/filerepo/FileRepo.php |
— | — | @@ -388,6 +388,8 @@ |
389 | 389 | */ |
390 | 390 | abstract function storeTemp( $originalName, $srcPath ); |
391 | 391 | |
| 392 | + abstract function append( $srcPath, $toAppendPath ); |
| 393 | + |
392 | 394 | /** |
393 | 395 | * Remove a temporary file or mark it for garbage collection |
394 | 396 | * @param string $virtualUrl The virtual URL returned by storeTemp |
Index: trunk/phase3/includes/filerepo/ForeignAPIRepo.php |
— | — | @@ -52,6 +52,9 @@ |
53 | 53 | function storeTemp( $originalName, $srcPath ) { |
54 | 54 | return false; |
55 | 55 | } |
| 56 | + function append( $srcPath, $toAppendPath ){ |
| 57 | + return false; |
| 58 | + } |
56 | 59 | function publishBatch( $triplets, $flags = 0 ) { |
57 | 60 | return false; |
58 | 61 | } |