// @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