settings/ajax/setquota.php 1 location
|
@@ 61-64 (lines=4) @@
|
| 58 |
|
|
| 59 |
|
//make sure the quota is in the expected format |
| 60 |
|
$quota= (string)$_POST["quota"]; |
| 61 |
|
if($quota !== 'none' and $quota !== 'default') { |
| 62 |
|
$quota= OC_Helper::computerFileSize($quota); |
| 63 |
|
$quota=OC_Helper::humanFileSize($quota); |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
// Return Success story |
| 67 |
|
if($username) { |
lib/private/User/User.php 1 location
|
@@ 381-384 (lines=4) @@
|
| 378 |
|
* @since 9.0.0 |
| 379 |
|
*/ |
| 380 |
|
public function setQuota($quota) { |
| 381 |
|
if($quota !== 'none' and $quota !== 'default') { |
| 382 |
|
$quota = OC_Helper::computerFileSize($quota); |
| 383 |
|
$quota = OC_Helper::humanFileSize($quota); |
| 384 |
|
} |
| 385 |
|
$this->config->setUserValue($this->uid, 'files', 'quota', $quota); |
| 386 |
|
$this->triggerChange('quota', $quota); |
| 387 |
|
} |