1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 07:42:41 +00:00

Update Localization util, filter out .DS_Store

This commit is contained in:
Daniel Supernault 2021-10-30 00:56:48 -06:00
parent 4dda3b3763
commit 0107e8fd68
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -11,8 +11,8 @@ class Localization {
{
return Cache::remember('core:localization:languages', now()->addDays(1), function() {
$dir = resource_path('lang');
return Arr::flatten(array_diff(scandir($dir), array('..', '.', 'vendor')));
return Arr::flatten(array_diff(scandir($dir), array('..', '.', 'vendor', '.DS_Store')));
});
}
}
}