aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib/Command/Expire.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/lib/Command/Expire.php')
-rw-r--r--apps/files_versions/lib/Command/Expire.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_versions/lib/Command/Expire.php b/apps/files_versions/lib/Command/Expire.php
index fecffd2f3cc..794cedbac9a 100644
--- a/apps/files_versions/lib/Command/Expire.php
+++ b/apps/files_versions/lib/Command/Expire.php
@@ -58,8 +58,6 @@ class Expire implements ICommand {
return;
}
- \OC_Util::setupFS($this->user);
- Storage::expire($this->fileName);
- \OC_Util::tearDownFS();
+ Storage::expire($this->fileName, $this->user);
}
}