mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
This commit is contained in:
parent
95233c1c19
commit
e812f035a6
@ -16,6 +16,7 @@ HumHub Changelog
|
||||
- Fix #5002: Fix loading of fixture spaces on tests
|
||||
- Fix #5018: Activity stream problems with many user accounts
|
||||
- Fix #5013: XSendFile broken when no SERVER_NAME header provided
|
||||
- Fix #5017: File CLI Command fails due to manually deleted files
|
||||
|
||||
|
||||
1.8.1 (March 12, 2021)
|
||||
|
@ -32,6 +32,10 @@ class FileController extends \yii\console\Controller
|
||||
$fileSizes = [];
|
||||
/** @var File $file */
|
||||
foreach (File::find()->each() as $file) {
|
||||
if (!is_file($file->store->get())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$fileSize += filesize($file->store->get());
|
||||
foreach ($file->store->getVariants() as $variant) {
|
||||
if (!isset($fileSizes[$variant])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user