Replace OC_FileCache usage in files_versions
This commit is contained in:
parent
69fd3f42e5
commit
0e548283fc
1 changed files with 2 additions and 1 deletions
|
@ -333,7 +333,8 @@ class Storage {
|
|||
}
|
||||
|
||||
// calculate available space for version history
|
||||
$rootInfo = \OC_FileCache::get('', '/'. $uid . '/files');
|
||||
$files_view = new \OC_FilesystemView('/'.$uid.'/files');
|
||||
$rootInfo = $files_view->getFileInfo('/');
|
||||
$free = $quota-$rootInfo['size']; // remaining free space for user
|
||||
if ( $free > 0 ) {
|
||||
$availableSpace = ($free * self::DEFAULTMAXSIZE / 100) - $versionsSize; // how much space can be used for versions
|
||||
|
|
Loading…
Reference in a new issue