it is enough to call the expire function once
This commit is contained in:
parent
e159143165
commit
d6c1e5490d
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue