]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correctly calculate used space for quota with external storage
authorArdinis <Ardinis@users.noreply.github.com>
Sun, 16 Apr 2017 00:32:14 +0000 (02:32 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 12 May 2017 16:32:12 +0000 (11:32 -0500)
issue #4348

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/legacy/helper.php

index 9c4bc895fb946d7961e0b1651d7eea3007ab9f51..6775fe99dcd8641677a4750fdf6baecab5a3e768 100644 (file)
@@ -537,7 +537,7 @@ class OC_Helper {
                $includeExtStorage = \OC::$server->getSystemConfig()->getValue('quota_include_external_storage', false);
 
                if (!$rootInfo) {
-                       $rootInfo = \OC\Files\Filesystem::getFileInfo($path, false);
+                       $rootInfo = \OC\Files\Filesystem::getFileInfo($path, $includeExtStorage ? 'ext' : false);
                }
                if (!$rootInfo instanceof \OCP\Files\FileInfo) {
                        throw new \OCP\Files\NotFoundException();