Use getPath, all operations are on filerepo level no need to get a local path. Follow...
authorJan Gerber <j@users.mediawiki.org>
Fri, 23 Dec 2011 09:30:02 +0000 (09:30 +0000)
committerJan Gerber <j@users.mediawiki.org>
Fri, 23 Dec 2011 09:30:02 +0000 (09:30 +0000)
includes/upload/UploadFromChunks.php

index 1bc7e85..3a5f809 100644 (file)
@@ -56,7 +56,7 @@ class UploadFromChunks extends UploadFromFile {
                $this->mFileKey = $this->mLocalFile->getFileKey();
 
                // Output a copy of this first to chunk 0 location:
                $this->mFileKey = $this->mLocalFile->getFileKey();
 
                // Output a copy of this first to chunk 0 location:
-               $status = $this->outputChunk( $this->mLocalFile->getLocalRefPath() );
+               $status = $this->outputChunk( $this->mLocalFile->getPath() );
                
                // Update db table to reflect initial "chunk" state 
                $this->updateChunkStatus();
                
                // Update db table to reflect initial "chunk" state 
                $this->updateChunkStatus();