Add missing parameter for fromTmpFile() inside of copy()

This commit is contained in:
Michael Gapczynski 2011-07-12 20:50:04 -04:00
parent f8eced1960
commit a861666500
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ class OC_FILESYSTEM{
} }
}elseif($storage1=self::getStorage($path1) and $storage2=self::getStorage($path2)){ }elseif($storage1=self::getStorage($path1) and $storage2=self::getStorage($path2)){
$tmpFile=$storage1->toTmpFile(self::getInternalPath($path1)); $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)); OC_HOOK::emit( 'OC_FILESYSTEM', 'post_copy', array( 'oldpath' => $path1 ,'newpath'=>$path2));
if(!$exists){ if(!$exists){