it is enough to call the expire function once

This commit is contained in:
Björn Schießle 2013-06-26 16:24:46 +02:00
parent e159143165
commit d6c1e5490d
1 changed files with 1 additions and 6 deletions

View File

@ -137,12 +137,7 @@ class Storage {
$versionsSize += $users_view->filesize('files'.$filename); $versionsSize += $users_view->filesize('files'.$filename);
// expire old revisions if necessary self::setVersionsSize($uid, $versionsSize);
$newSize = self::expire($filename, $versionsSize);
if ( $newSize != $versionsSize ) {
self::setVersionsSize($uid, $newSize);
}
} }
} }