summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-06-04 13:39:23 +0200
committerRobin Appelman <robin@icewind.nl>2019-06-04 14:15:20 +0200
commita0a3f534f7bb4498319e180f0164bbf8b22214fd (patch)
tree1d344331b1df7716c65c6d217e1139f0922abea5 /apps/files_versions/lib/Versions/LegacyVersionsBackend.php
parentfd9ff581e2a92f65def3f5d3209c4328fb65416a (diff)
downloadnextcloud-server-a0a3f534f7bb4498319e180f0164bbf8b22214fd.tar.gz
nextcloud-server-a0a3f534f7bb4498319e180f0164bbf8b22214fd.zip
allow non integer version ids
currently version ids are timestamps, but for storage provided versions this is not always the case and they might be strings Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_versions/lib/Versions/LegacyVersionsBackend.php')
-rw-r--r--apps/files_versions/lib/Versions/LegacyVersionsBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/Versions/LegacyVersionsBackend.php b/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
index aceddef29d2..46bd2ea8d46 100644
--- a/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
+++ b/apps/files_versions/lib/Versions/LegacyVersionsBackend.php
@@ -113,7 +113,7 @@ class LegacyVersionsBackend implements IVersionBackend {
return $file->fopen('r');
}
- public function getVersionFile(IUser $user, FileInfo $sourceFile, int $revision): File {
+ public function getVersionFile(IUser $user, FileInfo $sourceFile, $revision): File {
$userFolder = $this->rootFolder->getUserFolder($user->getUID());
$versionFolder = $this->getVersionFolder($user);
/** @var File $file */