From d6c1e5490d8f457da5fac12fce3db33802669abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Wed, 26 Jun 2013 16:24:46 +0200 Subject: [PATCH] it is enough to call the expire function once --- apps/files_versions/lib/versions.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 6abf278dda..d9016e4093 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); } }