]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add missing argument for fromTmpFile() inside of rename()
authorMichael Gapczynski <GapczynskiM@gmail.com>
Wed, 13 Jul 2011 17:30:22 +0000 (13:30 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Wed, 13 Jul 2011 17:47:45 +0000 (13:47 -0400)
lib/filesystem.php

index c8bafb2b58ab7269a62c4c2e76b50c164d8eaf51..b82fe2afebf2a9df7a294ff36d2f5bae063abd3f 100644 (file)
@@ -383,7 +383,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));
                                        $storage1->unlink(self::getInternalPath($path1));
                                }
                                OC_HOOK::emit( 'OC_FILESYSTEM', 'post_rename', array( 'oldpath' => $path1, 'newpath'=>$path2));