summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-06-26 16:24:46 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-07-12 11:24:31 +0200
commitd6c1e5490d8f457da5fac12fce3db33802669abe (patch)
tree78530f525fb7f342fd7e8f3a91cf4657305282ab /apps
parente15914316521bb6d9d791926434c9c6ce5b0aa91 (diff)
downloadnextcloud-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.php7
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);
}
}