Add missing argument for fromTmpFile() inside of rename()
This commit is contained in:
parent
a861666500
commit
ecaf66ee97
|
@ -383,7 +383,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));
|
||||||
$storage1->unlink(self::getInternalPath($path1));
|
$storage1->unlink(self::getInternalPath($path1));
|
||||||
}
|
}
|
||||||
OC_HOOK::emit( 'OC_FILESYSTEM', 'post_rename', array( 'oldpath' => $path1, 'newpath'=>$path2));
|
OC_HOOK::emit( 'OC_FILESYSTEM', 'post_rename', array( 'oldpath' => $path1, 'newpath'=>$path2));
|
||||||
|
|
Loading…
Reference in New Issue