diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-11-25 13:53:31 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-11-25 14:16:00 +0100 |
commit | b025f07fb7090acfe9d168974b4ce2e66f973e30 (patch) | |
tree | b6fd66ae1914ead55e046d34c55ea0569587107c /apps/files_trashbin | |
parent | 50f6817ce99f3870e1e8dea92eaa35a0c40553ba (diff) | |
download | nextcloud-server-b025f07fb7090acfe9d168974b4ce2e66f973e30.tar.gz nextcloud-server-b025f07fb7090acfe9d168974b4ce2e66f973e30.zip |
Make Cache\Updater per storage
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/trashbin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index 8f0fe745a45..94975530799 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -235,7 +235,7 @@ class Trashbin { return false; } - $ownerView->getUpdater()->rename('/files/' . $ownerPath, $trashPath); + $trashStorage->getUpdater()->renameFromStorage($sourceStorage, $sourceInternalPath, $trashInternalPath); if ($sizeOfAddedFiles !== false) { $size = $sizeOfAddedFiles; @@ -323,7 +323,7 @@ class Trashbin { $result = $targetStorage->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath); if ($result) { - $view->getUpdater()->rename($source, $target); + $targetStorage->getUpdater()->renameFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath); } return $result; } @@ -345,7 +345,7 @@ class Trashbin { $result = $targetStorage->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath); if ($result) { - $view->getUpdater()->update($target); + $targetStorage->getUpdater()->update($targetInternalPath); } return $result; } |