Skip to content

Commit

Permalink
Fixed : error with module missing languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair2004 authored May 12, 2021
1 parent dd21a53 commit ce8a2af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Providers/LocalizationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit ce8a2af

Please sign in to comment.