]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add missing parameter for fromTmpFile() inside of copy()
authorMichael Gapczynski <GapczynskiM@gmail.com>
Wed, 13 Jul 2011 00:50:04 +0000 (20:50 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Wed, 13 Jul 2011 00:50:04 +0000 (20:50 -0400)
lib/filesystem.php

index a67a36c9213ccd53000751e925f6a53a5b0f237a..c8bafb2b58ab7269a62c4c2e76b50c164d8eaf51 100644 (file)
@@ -411,7 +411,7 @@ class OC_FILESYSTEM{
                                        }
                                }elseif($storage1=self::getStorage($path1) and $storage2=self::getStorage($path2)){
                                        $tmpFile=$storage1->toTmpFile(self::getInternalPath($path1));
-                                       $result=$storage2->fromTmpFile(self::getInternalPath($path2));
+                                       $result=$storage2->fromTmpFile($tmpFile,self::getInternalPath($path2));
                                }
                                OC_HOOK::emit( 'OC_FILESYSTEM', 'post_copy', array( 'oldpath' => $path1 ,'newpath'=>$path2));
                                if(!$exists){