// @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)])) {
$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
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()
));
}