Skip to content
Snippets Groups Projects
Commit 4bc9e4e0 authored by Björn Schießle's avatar Björn Schießle
Browse files

wrong var name fixed

parent ca2b1f78
Branches
No related tags found
No related merge requests found
...@@ -276,7 +276,7 @@ class OC_FilesystemView { ...@@ -276,7 +276,7 @@ class OC_FilesystemView {
}else{ }else{
$source=$this->fopen($path1,'r'); $source=$this->fopen($path1,'r');
$target=$this->fopen($path2,'w'); $target=$this->fopen($path2,'w');
$count=OC_Helper::streamCopy($data,$target); $count=OC_Helper::streamCopy($source,$target);
$storage1=$this->getStorage($path1); $storage1=$this->getStorage($path1);
$storage1->unlink($this->getInternalPath($path1)); $storage1->unlink($this->getInternalPath($path1));
$result=$count>0; $result=$count>0;
...@@ -314,7 +314,7 @@ class OC_FilesystemView { ...@@ -314,7 +314,7 @@ class OC_FilesystemView {
}else{ }else{
$source=$this->fopen($path1,'r'); $source=$this->fopen($path1,'r');
$target=$this->fopen($path2,'w'); $target=$this->fopen($path2,'w');
$count=OC_Helper::streamCopy($data,$target); $count=OC_Helper::streamCopy($source,$target);
} }
OC_Hook::emit( OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_copy, array( OC_Filesystem::signal_param_oldpath => $path1 , OC_Filesystem::signal_param_newpath=>$path2)); OC_Hook::emit( OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_copy, array( OC_Filesystem::signal_param_oldpath => $path1 , OC_Filesystem::signal_param_newpath=>$path2));
if(!$exists){ if(!$exists){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment