aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Sabre/VersionCollection.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-04-30 21:18:49 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-01 08:38:59 +0200
commit5401732cd2aa0a47aa14ee7618b65214d65849ee (patch)
tree40683d9125b1e590275ff888cbabf53fc366dd44 /apps/files_versions/lib/Sabre/VersionCollection.php
parentdd47ebb06299f683e5933cf6038f2ff1a0f813ea (diff)
downloadnextcloud-server-5401732cd2aa0a47aa14ee7618b65214d65849ee.tar.gz
nextcloud-server-5401732cd2aa0a47aa14ee7618b65214d65849ee.zip
Allow to read get old versions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_versions/lib/Sabre/VersionCollection.php')
-rw-r--r--apps/files_versions/lib/Sabre/VersionCollection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/Sabre/VersionCollection.php b/apps/files_versions/lib/Sabre/VersionCollection.php
index 96a5e06bc25..481a5f491c3 100644
--- a/apps/files_versions/lib/Sabre/VersionCollection.php
+++ b/apps/files_versions/lib/Sabre/VersionCollection.php
@@ -71,7 +71,7 @@ class VersionCollection implements ICollection {
$versions = Storage::getVersions($this->userId, $this->userFolder->getRelativePath($this->file->getPath()));
return array_map(function (array $data) {
- return new VersionFile($data);
+ return new VersionFile($data, $this->userFolder->getParent());
}, $versions);
}