diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-09-16 17:22:17 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-09-16 17:22:17 +0300 |
commit | e3c067c2e10dc1faccf798e4c4d95e52cd85ff60 (patch) | |
tree | fe38509fa06d9777b797d9be6ee64c9ebbbfb854 /apps/files_versions | |
parent | 1f7ac2c309b7a43746a65f4676373071a8c3b359 (diff) |
Correct method title. Add docblock
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/backgroundjob/expireversions.php | 2 | ||||
-rw-r--r-- | apps/files_versions/lib/storage.php | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/files_versions/lib/backgroundjob/expireversions.php b/apps/files_versions/lib/backgroundjob/expireversions.php index ec5612b5a67..afdd5eed57a 100644 --- a/apps/files_versions/lib/backgroundjob/expireversions.php +++ b/apps/files_versions/lib/backgroundjob/expireversions.php @@ -74,7 +74,7 @@ class ExpireVersions extends \OC\BackgroundJob\TimedJob { } $isFSready = true; } - Storage::expireOlderThan($uid); + Storage::expireOlderThanMaxForUser($uid); } \OC_Util::tearDownFS(); diff --git a/apps/files_versions/lib/storage.php b/apps/files_versions/lib/storage.php index 1f9d0fa04a1..6aa58c55e9b 100644 --- a/apps/files_versions/lib/storage.php +++ b/apps/files_versions/lib/storage.php @@ -403,7 +403,11 @@ class Storage { return $versions; } - public static function expireOlderThan($uid){ + /** + * Expire versions that older than max version retention time + * @param string $uid + */ + public static function expireOlderThanMaxForUser($uid){ $expiration = self::getExpiration(); $threshold = $expiration->getMaxAgeAsTimestamp(); $versions = self::getAllVersions($uid); |