Filename as original

This commit is contained in:
Peter Papp
2021-06-18 17:23:40 +02:00
parent 24676e2392
commit f6f9199b87
8 changed files with 23 additions and 8 deletions

View File

@@ -22,7 +22,11 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
$app_locale = get_setting('language') ?? 'en';
try {
$app_locale = get_setting('language') ?? 'en';
} catch (\PDOException $exception) {
$app_locale = 'en';
}
// Set locale for application
app()->setLocale($app_locale);