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
|
@@ 391-394 (lines=4) @@
|
| 388 |
|
* @since 9.0.0 |
| 389 |
|
*/ |
| 390 |
|
public function setQuota($quota) { |
| 391 |
|
if($quota !== 'none' and $quota !== 'default') { |
| 392 |
|
$quota = OC_Helper::computerFileSize($quota); |
| 393 |
|
$quota = OC_Helper::humanFileSize($quota); |
| 394 |
|
} |
| 395 |
|
$this->config->setUserValue($this->uid, 'files', 'quota', $quota); |
| 396 |
|
$this->triggerChange('quota', $quota); |
| 397 |
|
} |