From 9fec30573bb26b68094ebe11fbd73c8a7bc98cb7 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 1 Jan 2012 23:28:18 +0000 Subject: [PATCH] Tidyup outputChunk added in r104687, remove/update documentation Don't use undefined $path variable on line 265 --- includes/upload/UploadFromChunks.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/upload/UploadFromChunks.php b/includes/upload/UploadFromChunks.php index 993446b4d9..67f020f3b1 100644 --- a/includes/upload/UploadFromChunks.php +++ b/includes/upload/UploadFromChunks.php @@ -241,15 +241,14 @@ class UploadFromChunks extends UploadFromFile { /** * Output the chunk to disk * - * @param $chunk - * @param unknown_type $path + * @param $chunkPath string */ private function outputChunk( $chunkPath ){ // Key is fileKey + chunk index $fileKey = $this->getChunkFileKey(); // Store the chunk per its indexed fileKey: - $hashPath = $this->repo->getHashPath( $fileKey ); + $hashPath = $this->repo->getHashPath( $fileKey ); $storeStatus = $this->repo->store( $chunkPath, 'temp', "$hashPath$fileKey" ); // Check for error in stashing the chunk: @@ -263,7 +262,7 @@ class UploadFromChunks extends UploadFromFile { $error = array( 'unknown', 'no error recorded' ); } } - throw new UploadChunkFileException( "error storing file in '$path': " . implode( '; ', $error ) ); + throw new UploadChunkFileException( "error storing file in '$chunkPath': " . implode( '; ', $error ) ); } return $storeStatus; } -- 2.20.1