1
0
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:
Toby Zerner
2016-05-26 22:24:56 +09:30
parent 1b7a0ecb33
commit 8e99059f62
2 changed files with 9 additions and 4 deletions

View File

@@ -343,7 +343,7 @@ class WebAppView
{
return array_map(function ($file) use ($baseUrl) {
return $baseUrl.str_replace(public_path(), '', $file);
}, $files);
}, array_filter($files));
}
/**