Index: trunk/phase3/includes/upload/UploadFromChunks.php |
— | — | @@ -241,15 +241,14 @@ |
242 | 242 | /** |
243 | 243 | * Output the chunk to disk |
244 | 244 | * |
245 | | - * @param $chunk |
246 | | - * @param unknown_type $path |
| 245 | + * @param $chunkPath string |
247 | 246 | */ |
248 | 247 | private function outputChunk( $chunkPath ){ |
249 | 248 | // Key is fileKey + chunk index |
250 | 249 | $fileKey = $this->getChunkFileKey(); |
251 | 250 | |
252 | 251 | // Store the chunk per its indexed fileKey: |
253 | | - $hashPath = $this->repo->getHashPath( $fileKey ); |
| 252 | + $hashPath = $this->repo->getHashPath( $fileKey ); |
254 | 253 | $storeStatus = $this->repo->store( $chunkPath, 'temp', "$hashPath$fileKey" ); |
255 | 254 | |
256 | 255 | // Check for error in stashing the chunk: |
— | — | @@ -263,7 +262,7 @@ |
264 | 263 | $error = array( 'unknown', 'no error recorded' ); |
265 | 264 | } |
266 | 265 | } |
267 | | - throw new UploadChunkFileException( "error storing file in '$path': " . implode( '; ', $error ) ); |
| 266 | + throw new UploadChunkFileException( "error storing file in '$chunkPath': " . implode( '; ', $error ) ); |
268 | 267 | } |
269 | 268 | return $storeStatus; |
270 | 269 | } |