summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-08-02 10:27:36 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-08-02 10:27:36 +0200
commit98a7e42ebb7a02f0e6356928697506980e7f30e6 (patch)
tree526a99f5779e74b9b43143c4dccfe2ccd53e575a /apps/provisioning_api
parentcea72c47f923b8ed5a82a50af75d5a832c78d074 (diff)
downloadnextcloud-server-98a7e42ebb7a02f0e6356928697506980e7f30e6.tar.gz
nextcloud-server-98a7e42ebb7a02f0e6356928697506980e7f30e6.zip
[provisioning api] Move away from OC\Util to OCP\Util
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r--apps/provisioning_api/lib/users.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/provisioning_api/lib/users.php b/apps/provisioning_api/lib/users.php
index c896b0a6191..359400b029d 100644
--- a/apps/provisioning_api/lib/users.php
+++ b/apps/provisioning_api/lib/users.php
@@ -184,7 +184,7 @@ class Users {
if (is_numeric($quota)) {
$quota = floatval($quota);
} else {
- $quota = OC_Helper::computerFileSize($quota);
+ $quota = \OCP\Util::computerFileSize($quota);
}
if ($quota === false) {
return new OC_OCS_Result(null, 103, "Invalid quota value {$parameters['_put']['value']}");
@@ -194,7 +194,7 @@ class Users {
}else if($quota === -1){
$quota = 'none';
} else {
- $quota = OC_Helper::humanFileSize($quota);
+ $quota = \OCP\Util::humanFileSize($quota);
}
}
$this->config->setUserValue($userId, 'files', 'quota', $quota);