X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flanguage-functions.php;h=f2fe7a9536d422c83e12a0a6c2a53c94b503b724;hp=48f17fdb2719b5b5a7d74b67086d5b2cff0a3c7b;hb=7c15ca79161bf475e958810a5b585bce869a2af9;hpb=9d411a5575f41af78a82b0ed03cdc287b6db3ca9 diff --git a/inc/language-functions.php b/inc/language-functions.php index 48f17fdb27..f2fe7a9536 100644 --- a/inc/language-functions.php +++ b/inc/language-functions.php @@ -83,8 +83,11 @@ function getCurrentLanguage () { // "Getter" for language function getLanguage () { + // Default is 'de'. DO NOT CHANGE THIS!!! + $ret = 'de'; + // Set default return value to default language from config - $ret = getConfig('DEFAULT_LANG'); + if (isConfigEntrySet('DEFAULT_LANG')) $ret = getConfig('DEFAULT_LANG'); // Init variable $lang = ''; @@ -177,7 +180,7 @@ function loadLanguageFile ($ext_name = 'none') { if (isLanguageIncludeReadable($ext_name)) { // Load language file loadLanguageInclude($ext_name); - } elseif ((isDebugModeEnabled()) && (getOutputMode() == '0') && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme')) { + } elseif ((isDebugModeEnabled()) && (getOutputMode() == 0) && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme')) { // No language file is not so good... logDebugMessage(__FUNCTION__, __LINE__, sprintf("NOTICE: Extension %s has no language file or we cannot read from it. lang=%s, mode=%s", $ext_name,