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

View file

@ -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);
}
}