diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2014-11-21 13:00:53 (GMT) |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2014-11-21 13:00:53 (GMT) |
commit | 2fdac000a8cc8a674dc0b1c77aeb1fe98422e589 (patch) | |
tree | 2e9666ae635ce830351b92e6358abc20b42bfd05 | |
parent | 1bf3cab3f81f171358ec4f4eaea63ec018ba9981 (diff) | |
download | kolab-chwala-2fdac000a8cc8a674dc0b1c77aeb1fe98422e589.tar.gz |
Fix copying files in SeaFile storage (#3955)
-rw-r--r-- | lib/drivers/seafile/seafile_file_storage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drivers/seafile/seafile_file_storage.php b/lib/drivers/seafile/seafile_file_storage.php index 9459fa6..95c3f88 100644 --- a/lib/drivers/seafile/seafile_file_storage.php +++ b/lib/drivers/seafile/seafile_file_storage.php @@ -658,7 +658,7 @@ class seafile_file_storage implements file_storage $src_dir = '/' . ltrim(implode('/', $path_src), '/'); $dst_dir = '/' . ltrim(implode('/', $path_dst), '/'); - $success = $this->api->file_copy($repo_id, $f_old, $src_dir, $dst_dir, $dst_repo_id); + $success = $this->api->file_copy($repo_id, $f_src, $src_dir, $dst_dir, $dst_repo_id); // now rename the file if needed if ($success && $f_src != $f_dst) { @@ -666,7 +666,7 @@ class seafile_file_storage implements file_storage } } - if (!$saved) { + if (!$success) { rcube::raise_error(array( 'code' => 600, 'type' => 'php', 'file' => __FILE__, 'line' => __LINE__, |