Should not be loadInclude() here, we need to rewrite EXT_LOAD_MODE and EXT_VER here
[mailer.git] / inc / language-functions.php
index 693fed1674d032e6002c7ac86c05b98d01d45d89..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