diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-02-25 15:34:36 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-02-25 15:34:36 +0100 |
commit | 272f854ce685f3f44312fd4cb15858bbbd993276 (patch) | |
tree | f96ab86e9599c8c8e33493c853543a248527ad50 /apps | |
parent | 0f763f4508bf82e9e50713c6bc775a91ed3ad54c (diff) | |
download | nextcloud-server-272f854ce685f3f44312fd4cb15858bbbd993276.tar.gz nextcloud-server-272f854ce685f3f44312fd4cb15858bbbd993276.zip |
fix getVersion call
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_trashbin/lib/trash.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php index 8f745f82032..a04545e3261 100644 --- a/apps/files_trashbin/lib/trash.php +++ b/apps/files_trashbin/lib/trash.php @@ -77,7 +77,7 @@ class Trashbin { if ( $view->is_dir('files_versions'.$file_path) ) { $trashbinSize += self::calculateSize(new \OC_FilesystemView('/'. $user.'/files_versions/'.$file_path)); $view->rename('files_versions'.$file_path, 'files_trashbin/versions'. $deleted.'.d'.$timestamp); - } else if ( $versions = \OCA\Files_Versions\Storage::getVersions($file_path) ) { + } else if ( $versions = \OCA\Files_Versions\Storage::getVersions($user, $file_path) ) { foreach ($versions as $v) { $trashbinSize += $view->filesize('files_versions'.$v['path'].'.v'.$v['version']); $view->rename('files_versions'.$v['path'].'.v'.$v['version'], 'files_trashbin/versions'. $deleted.'.v'.$v['version'].'.d'.$timestamp); |