diff options
author | Ardinis <Ardinis@users.noreply.github.com> | 2017-04-16 02:32:14 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-12 11:32:12 -0500 |
commit | 40560ca98d0f390e417ec8b2f102af0494711dc0 (patch) | |
tree | fb37132562146b3c61313b4d24c1e5b30cfdc4c2 /lib | |
parent | d83f1d96d4541e8e5a686be94b9c03ebb31f5f76 (diff) | |
download | nextcloud-server-40560ca98d0f390e417ec8b2f102af0494711dc0.tar.gz nextcloud-server-40560ca98d0f390e417ec8b2f102af0494711dc0.zip |
Correctly calculate used space for quota with external storage
issue #4348
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php index 9c4bc895fb9..6775fe99dcd 100644 --- a/lib/private/legacy/helper.php +++ b/lib/private/legacy/helper.php @@ -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(); |