diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-26 16:24:46 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-12 11:24:31 +0200 |
commit | d6c1e5490d8f457da5fac12fce3db33802669abe (patch) | |
tree | 78530f525fb7f342fd7e8f3a91cf4657305282ab /apps | |
parent | e15914316521bb6d9d791926434c9c6ce5b0aa91 (diff) | |
download | nextcloud-server-d6c1e5490d8f457da5fac12fce3db33802669abe.tar.gz nextcloud-server-d6c1e5490d8f457da5fac12fce3db33802669abe.zip |
it is enough to call the expire function once
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/lib/versions.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 6abf278ddab..d9016e40935 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -137,12 +137,7 @@ class Storage { $versionsSize += $users_view->filesize('files'.$filename); - // expire old revisions if necessary - $newSize = self::expire($filename, $versionsSize); - - if ( $newSize != $versionsSize ) { - self::setVersionsSize($uid, $newSize); - } + self::setVersionsSize($uid, $versionsSize); } } |