settings/ajax/setquota.php 1 location
|
@@ 53-56 (lines=4) @@
|
| 50 |
|
|
| 51 |
|
//make sure the quota is in the expected format |
| 52 |
|
$quota= (string)$_POST["quota"]; |
| 53 |
|
if($quota !== 'none' and $quota !== 'default') { |
| 54 |
|
$quota= OC_Helper::computerFileSize($quota); |
| 55 |
|
$quota=OC_Helper::humanFileSize($quota); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
// Return Success story |
| 59 |
|
if($username) { |
lib/private/User/User.php 1 location
|
@@ 365-368 (lines=4) @@
|
| 362 |
|
* @since 9.0.0 |
| 363 |
|
*/ |
| 364 |
|
public function setQuota($quota) { |
| 365 |
|
if($quota !== 'none' and $quota !== 'default') { |
| 366 |
|
$quota = OC_Helper::computerFileSize($quota); |
| 367 |
|
$quota = OC_Helper::humanFileSize($quota); |
| 368 |
|
} |
| 369 |
|
$this->config->setUserValue($this->uid, 'files', 'quota', $quota); |
| 370 |
|
$this->triggerChange('quota', $quota); |
| 371 |
|
} |