Merge pull request #1487 from owncloud/fix-1420-master

Replace OC_FileCache usage in files_versions
This commit is contained in:
Thomas Müller 2013-02-06 06:45:01 -08:00
commit 58a3a6a573
1 changed files with 2 additions and 1 deletions

View File

@ -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