aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-01-27 15:41:56 +0100
committerRobin Appelman <icewind@owncloud.com>2014-01-27 15:41:56 +0100
commita521949bafdaba0cb94061967b6b8307bbbebc05 (patch)
tree62ddb3df37ca695ed4ff40b79594cbf26f4f561e /lib/private/util.php
parentd182b4f59fd7b172764a4d802dbd3ee6a953ea39 (diff)
downloadnextcloud-server-a521949bafdaba0cb94061967b6b8307bbbebc05.tar.gz
nextcloud-server-a521949bafdaba0cb94061967b6b8307bbbebc05.zip
Allow passing a root folder to get the used space from in the quota wrapper
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-xlib/private/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 8aa7a074d0d..66a770a33dc 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -65,7 +65,7 @@ class OC_Util {
$user = $storage->getUser()->getUID();
$quota = OC_Util::getUserQuota($user);
if ($quota !== \OC\Files\SPACE_UNLIMITED) {
- return new \OC\Files\Storage\Wrapper\Quota(array('storage' => $storage, 'quota' => $quota));
+ return new \OC\Files\Storage\Wrapper\Quota(array('storage' => $storage, 'quota' => $quota, 'root' => 'files'));
}
}