]> git.mxchange.org Git - mailer.git/blobdiff - inc/language-functions.php
Rewrites not to init config in config-functions.php (some still remain, many untested)
[mailer.git] / inc / language-functions.php
index 1936842e75f3d78e1fcc06993408753e1092fbc2..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 = '';