summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);