[Pkg-owncloud-commits] [owncloud] 45/457: update cache after move to trash

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:05:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit a0854b36f012e4c5573a4ed6ea8d074482908c4b
Author: Robin Appelman <icewind at owncloud.com>
Date:   Wed May 13 14:54:43 2015 +0200

    update cache after move to trash
---
 apps/files_trashbin/lib/trashbin.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 9c8aa5e..26a7aeb 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -208,6 +208,8 @@ class Trashbin {
 			return false;
 		}
 
+		$view->getUpdater()->rename('/files/' . $file_path, $trashPath);
+
 		if ($sizeOfAddedFiles !== false) {
 			$size = $sizeOfAddedFiles;
 			$query = \OC_DB::prepare("INSERT INTO `*PREFIX*files_trash` (`id`,`timestamp`,`location`,`user`) VALUES (?,?,?,?)");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list