mirror of
https://github.com/flarum/core.git
synced 2025-08-07 00:47:00 +02:00
Don't write/serve empty asset files
The new locale-specific CSS file doesn't have any content by default, so it's a waste to write it and serve it to the user.
This commit is contained in:
@@ -343,7 +343,7 @@ class WebAppView
|
||||
{
|
||||
return array_map(function ($file) use ($baseUrl) {
|
||||
return $baseUrl.str_replace(public_path(), '', $file);
|
||||
}, $files);
|
||||
}, array_filter($files));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user