update mLocalFile in concatenateChunks to make chunk upload
authorJan Gerber <j@users.mediawiki.org>
Tue, 27 Dec 2011 04:49:08 +0000 (04:49 +0000)
committerJan Gerber <j@users.mediawiki.org>
Tue, 27 Dec 2011 04:49:08 +0000 (04:49 +0000)
work with recent filerepo changes
Follow up r104687

includes/upload/UploadFromChunks.php

index 651b2a3..993446b 100644 (file)
@@ -107,8 +107,11 @@ class UploadFromChunks extends UploadFromFile {
                if( !$status->isOk() ){
                        return $status; 
                }
-               // Update the mTempPath variable ( for FileUpload or normal Stash to take over )  
+               // Update the mTempPath and mLocalFile
+               // ( for FileUpload or normal Stash to take over )  
                $this->mTempPath = $tmpPath; // file system path
+               $this->mLocalFile = parent::stashFile();
+
                return $status;
        }