summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2016-02-09 17:16:43 +0100
committerArthur Schiwon <blizzz@owncloud.com>2016-02-09 17:16:43 +0100
commit3a796d1e1533febc63a2719816815b47f2065e82 (patch)
tree3fdf9dab718f2a186341d875763c6f8fafd5b7db /apps/files_versions
parent4659bf9b4a880376e690d3ca52e855a861c143f1 (diff)
downloadnextcloud-server-3a796d1e1533febc63a2719816815b47f2065e82.tar.gz
nextcloud-server-3a796d1e1533febc63a2719816815b47f2065e82.zip
Consolidate getQuota and setQuota methods in User instance
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/lib/storage.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_versions/lib/storage.php b/apps/files_versions/lib/storage.php
index 88a4126dabd..47acec1d763 100644
--- a/apps/files_versions/lib/storage.php
+++ b/apps/files_versions/lib/storage.php
@@ -653,11 +653,9 @@ class Storage {
$versionsFileview = new \OC\Files\View('/'.$uid.'/files_versions');
// get available disk space for user
+ $user = \OC::$server->getUserManager()->get($uid);
$softQuota = true;
- $quota = $config->getUserValue($uid, 'files', 'quota', null);
- if ( $quota === null || $quota === 'default') {
- $quota = $config->getAppValue('files', 'default_quota', null);
- }
+ $quota = $user->getQuota();
if ( $quota === null || $quota === 'none' ) {
$quota = \OC\Files\Filesystem::free_space('/');
$softQuota = false;