| @@ 651-653 (lines=3) @@ | ||
| 648 | $softQuota = true; |
|
| 649 | $quota = $config->getUserValue($user, 'files', 'quota', null); |
|
| 650 | $view = new \OC\Files\View('/' . $user); |
|
| 651 | if ($quota === null || $quota === 'default') { |
|
| 652 | $quota = $config->getAppValue('files', 'default_quota', null); |
|
| 653 | } |
|
| 654 | if ($quota === null || $quota === 'none') { |
|
| 655 | $quota = \OC\Files\Filesystem::free_space('/'); |
|
| 656 | $softQuota = false; |
|
| @@ 544-546 (lines=3) @@ | ||
| 541 | // get available disk space for user |
|
| 542 | $softQuota = true; |
|
| 543 | $quota = $config->getUserValue($uid, 'files', 'quota', null); |
|
| 544 | if ( $quota === null || $quota === 'default') { |
|
| 545 | $quota = $config->getAppValue('files', 'default_quota', null); |
|
| 546 | } |
|
| 547 | if ( $quota === null || $quota === 'none' ) { |
|
| 548 | $quota = \OC\Files\Filesystem::free_space('/'); |
|
| 549 | $softQuota = false; |
|