Overview
Comment: | Fix quota left when used space is larger than available quota |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
6a458d25dee97fb5c192086ec43fef95 |
User & Date: | bohwaz on 2021-09-15 09:53:04 |
Other Links: | manifest | tags |
Context
2021-09-15
| ||
10:10 | Fix update of modified datetime when editing a page check-in: eb351c0ecc user: bohwaz tags: trunk, stable | |
09:53 | Fix quota left when used space is larger than available quota check-in: 6a458d25de user: bohwaz tags: trunk, stable | |
2021-09-14
| ||
22:49 | Fix [1e6f556480cd56c987e2a17bdde968c0e54ac5ea] paid amount didn't include the decimal point check-in: 822638372b user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Files/Files.php from [1c2405702d] to [9196c1dfe3].
︙ | ︙ | |||
290 291 292 293 294 295 296 | return $quota; } static public function getRemainingQuota(bool $force_refresh = false): float { if (FILE_STORAGE_QUOTA !== null) { | | > > | | > | 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 | return $quota; } static public function getRemainingQuota(bool $force_refresh = false): float { if (FILE_STORAGE_QUOTA !== null) { $quota = FILE_STORAGE_QUOTA - self::getUsedQuota($force_refresh); } else { $quota = self::callStorage('getRemainingQuota'); } return max(0, $quota); } static public function checkQuota(int $size = 0): void { if (!self::$quota) { return; } |
︙ | ︙ |