mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(files_versions): Use helper function
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
db47d231fe
commit
ae259d6a38
1 changed files with 1 additions and 4 deletions
|
|
@ -370,10 +370,7 @@ class LegacyVersionsBackend implements IVersionBackend, IDeletableVersionBackend
|
|||
throw new Exception('Relative path not found for node with path: ' . $source->getPath());
|
||||
}
|
||||
|
||||
$versionFolder = $this->rootFolder->get($userId . '/files_versions');
|
||||
if (!$versionFolder instanceof Folder) {
|
||||
throw new Exception('User versions folder does not exist');
|
||||
}
|
||||
$versionFolder = $this->getVersionFolder($user);
|
||||
|
||||
$versions = Storage::getVersions($userId, $relativePath);
|
||||
foreach ($versions as $version) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue