]> git.mxchange.org Git - mailer.git/blobdiff - inc/language-functions.php
Should not be loadInclude() here, we need to rewrite EXT_LOAD_MODE and EXT_VER here
[mailer.git] / inc / language-functions.php
index c2cde5f34ff215b79f018c289459040edd1a1094..8aa635052922ac45c81be76e16e77ee7fa94d94e 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 // @TODO Rewrite all language constants to this function.
 function getMessage ($messageId) {
        // Default is not found!
-       $return = '!'.$messageId.'!';
+       $return = '!' . $messageId . '!';
 
        // Is the language string found?
        if (isset($GLOBALS['msg'][strtolower($messageId)])) {
@@ -83,7 +83,7 @@ function getLanguage () {
                $ret = $GLOBALS['cache_array']['language'];
        } elseif (!empty($lang)) {
                // Check if main language file does exist
-               if (isFileReadable(constant('PATH') . 'inc/language/' . $lang . '.php')) {
+               if (isIncludeReadable('inc/language/' . $lang . '.php')) {
                        // Okay found, so let's update cookies
                        setLanguage($lang);
                } // END - if
@@ -146,7 +146,7 @@ function loadLanguageFile ($ext_name = '') {
                loadIncludeOnce($languageInclude);
        } elseif ((isDebugModeEnabled()) && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme')) {
                // No language file is not so good...
-               DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("WARNING: Extension %s has no language file or we cannot read from it. lang=%s",
+               DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("NOTICE: Extension %s has no language file or we cannot read from it. lang=%s",
                        $ext_name, getLanguage()
                ));
        }