aboutsummaryrefslogtreecommitdiffstats
path: root/settings/ajax
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 /settings/ajax
parent4659bf9b4a880376e690d3ca52e855a861c143f1 (diff)
downloadnextcloud-server-3a796d1e1533febc63a2719816815b47f2065e82.tar.gz
nextcloud-server-3a796d1e1533febc63a2719816815b47f2065e82.zip
Consolidate getQuota and setQuota methods in User instance
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/setquota.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php
index dbdfb98bc8c..94fd7bd1e2b 100644
--- a/settings/ajax/setquota.php
+++ b/settings/ajax/setquota.php
@@ -56,7 +56,7 @@ if($quota !== 'none' and $quota !== 'default') {
// Return Success story
if($username) {
- \OC::$server->getConfig()->setUserValue($username, 'files', 'quota', $quota);
+ $targetUserObject->setQuota($quota);
}else{//set the default quota when no username is specified
if($quota === 'default') {//'default' as default quota makes no sense
$quota='none';