Merge pull request #57 from vsc55/#56

Fix name folder "classes".
This commit is contained in:
Andre Lorbach 2020-07-08 11:02:34 +02:00 committed by GitHub
commit a19d44a718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1250,10 +1250,15 @@ function IncludeLanguageFile( $langfile, $failOnError = true )
global $LANG, $LANG_EN; global $LANG, $LANG_EN;
// If english is not selected, we load ENGLISH first - then overwrite with configured language // If english is not selected, we load ENGLISH first - then overwrite with configured language
if ( $LANG != "en" ) if ( $LANG != "en" ) {
$langengfile = str_replace( $LANG, $LANG_EN, $langfile ); //Fix #56
$arr_LANG = array(sprintf('/%s/', $LANG), sprintf('.%s.', $LANG));
$arr_LANG_EN = array(sprintf('/%s/', $LANG_EN), sprintf('.%s.', $LANG_EN));
$langengfile = str_replace($arr_LANG, $arr_LANG_EN, $langfile);
}
else else
$langengfile = $langfile; $langengfile = $langfile;
if ( file_exists($langengfile) ) if ( file_exists($langengfile) )
include( $langengfile ); include( $langengfile );
else else