[Pkg-owncloud-commits] [owncloud] 21/83: Fixed quota calculation to also exclude ext storage

David Prévot taffit at moszumanska.debian.org
Wed Dec 18 13:05:25 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch 5.0
in repository owncloud.

commit 4cb6c6fe64da526a6e00a3602db17ffcecfc780b
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Tue Nov 19 10:05:50 2013 +0100

    Fixed quota calculation to also exclude ext storage
---
 lib/fileproxy/quota.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/fileproxy/quota.php b/lib/fileproxy/quota.php
index 3dac326..8c6d7f5 100644
--- a/lib/fileproxy/quota.php
+++ b/lib/fileproxy/quota.php
@@ -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;
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list