summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/ajax/expireAll.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/ajax/expireAll.php')
-rw-r--r--apps/files_versions/ajax/expireAll.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_versions/ajax/expireAll.php b/apps/files_versions/ajax/expireAll.php
index f9cd74aed02..238e3bdad4d 100644
--- a/apps/files_versions/ajax/expireAll.php
+++ b/apps/files_versions/ajax/expireAll.php
@@ -28,7 +28,9 @@
OCP\JSON::checkLoggedIn();
OCP\App::checkAppEnabled('files_versions');
-if( OCA_Versions\Storage::expireAll() ){
+$versions = new OCA_Versions\Storage( new OC_FilesystemView('') );
+
+if( $versions->expireAll() ){
OCP\JSON::success();
die();