]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed quota calculation to also exclude ext storage
authorVincent Petry <pvince81@owncloud.com>
Tue, 19 Nov 2013 09:05:50 +0000 (10:05 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 19 Nov 2013 09:05:50 +0000 (10:05 +0100)
lib/fileproxy/quota.php

index 3dac3264fbec6f27db03836410907a8b6d0bad9b..8c6d7f5c8202d75d42b6b97275d54c3e31cfdd37 100644 (file)
@@ -74,7 +74,7 @@ class OC_FileProxy_Quota extends OC_FileProxy{
 
                $view = new \OC\Files\View("/".$owner."/files");
 
-               $rootInfo = $view->getFileInfo('/');
+               $rootInfo = $view->getFileInfo('/', false);
                $usedSpace = isset($rootInfo['size'])?$rootInfo['size']:0;
                return $totalSpace - $usedSpace;
        }