From a775deaf22ee803ae2ff0dbe1068229d9c819232 Mon Sep 17 00:00:00 2001 From: Sam Tuke Date: Tue, 3 Jul 2012 17:42:51 +0100 Subject: Moved hooks and versions.php into new lib directory Part-ported filesystem operations to OC_FilesystemView Refactored Storage class to depend on an OC_FsV object and have fewer static classes --- apps/files_versions/ajax/expireAll.php | 4 +++- apps/files_versions/ajax/getVersions.php | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files_versions/ajax') 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(); diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php index f29d1760b6f..1a0e21732cc 100644 --- a/apps/files_versions/ajax/getVersions.php +++ b/apps/files_versions/ajax/getVersions.php @@ -1,8 +1,6 @@