Merge pull request #1991 from ZoneMinder/UserLanguageFix

Fix user language setting never being used
This commit is contained in:
Andrew Bauer 2017-09-29 12:20:03 -05:00 committed by GitHub
commit aa25936b3d
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ function loadLanguage( $prefix="" )
$fallbackLangFile = $prefix.'lang/en_gb.php';
$systemLangFile = $prefix.'lang/'.ZM_LANG_DEFAULT.'.php';
if ( isset($user['Language']) )
$userLangFile = $prefix.$user['Language'].'.php';
$userLangFile = $prefix.'lang/'.$user['Language'].'.php';
if ( isset($userLangFile) && file_exists( $userLangFile ) )
return( $userLangFile );