]> source.dussan.org Git - nextcloud-server.git/commitdiff
wrong var name fixed
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 3 Jul 2012 14:43:57 +0000 (16:43 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 3 Jul 2012 14:43:57 +0000 (16:43 +0200)
lib/filesystemview.php

index 99e08c50e75e92446f553b007ffd45fc30910165..d474b61b98ce1f0be352738275f1fc73e1ed7c90 100644 (file)
@@ -276,7 +276,7 @@ class OC_FilesystemView {
                                }else{
                                        $source=$this->fopen($path1,'r');
                                        $target=$this->fopen($path2,'w');
-                                       $count=OC_Helper::streamCopy($data,$target);
+                                       $count=OC_Helper::streamCopy($source,$target);
                                        $storage1=$this->getStorage($path1);
                                        $storage1->unlink($this->getInternalPath($path1));
                                        $result=$count>0;
@@ -314,7 +314,7 @@ class OC_FilesystemView {
                                }else{
                                        $source=$this->fopen($path1,'r');
                                        $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));
                                if(!$exists){