]> git.mxchange.org Git - mailer.git/blobdiff - inc/language-functions.php
Some typos
[mailer.git] / inc / language-functions.php
index 48f17fdb2719b5b5a7d74b67086d5b2cff0a3c7b..f2fe7a9536d422c83e12a0a6c2a53c94b503b724 100644 (file)
@@ -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,