From ce8a2af6b44d6c1043a6d536f5601fad44298584 Mon Sep 17 00:00:00 2001 From: Blair Jersyer Date: Wed, 12 May 2021 14:04:54 +0100 Subject: [PATCH] Fixed : error with module missing languages --- app/Providers/LocalizationServiceProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Providers/LocalizationServiceProvider.php b/app/Providers/LocalizationServiceProvider.php index e42e59d8c..a1958b291 100644 --- a/app/Providers/LocalizationServiceProvider.php +++ b/app/Providers/LocalizationServiceProvider.php @@ -40,6 +40,7 @@ protected function loadModuleLocale() foreach( $active as $module ) { if ( isset( $module[ 'langFiles' ] ) && + isset( $module[ 'langFiles' ][ app()->getLocale() ] ) && Storage::disk( 'ns-modules' )->exists( $module[ 'langFiles' ][ app()->getLocale() ] ) ) { $locales = json_decode( file_get_contents( base_path( 'modules' . DIRECTORY_SEPARATOR . $module[ 'langFiles' ][ app()->getLocale() ] ) ), true );