Skip to content
Snippets Groups Projects
Commit 0e548283 authored by Bart Visscher's avatar Bart Visscher
Browse files

Replace OC_FileCache usage in files_versions

parent 69fd3f42
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment