mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
[provisioning api] Move away from OC\Util to OCP\Util
This commit is contained in:
parent
cea72c47f9
commit
98a7e42ebb
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue