Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Script error when loading website

Asked Modified Viewed 774 times
D
dev723
D
dev723 10
Dennis
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Loading error in line 7 $current_userXXXXXXXXXXXXXXXXXX

// Main language detection procedure
static $current_user_language = [];
if (iMEMBER && valid_language($userdata['user_language'])) {
$current_user_language = $userdata['user_language'];
} else {
$langData = dbarray(dbquery('SELECT * FROM '.DB_LANGUAGE_SESSIONS.' WHERE user_ip=:ip', [':ip' => USER_IP]));
$current_user_language = ($langData['user_language'] ?: fusion_get_settings('locale'wink);
}
$language_opts = fusion_get_enabled_languages();
$enabled_languages = array_keys($language_opts);

// If language change is initiated and if the selected language is valid
if (isset($_GET['lang']) && isset($_GET['lang']) != "" && file_exists(LOCALE.$_GET['lang']."/global.php"wink && in_array($_GET['lang'], $enabled_languages)) {
$current_user_language = stripinput($_GET['lang']);
set_language($current_user_language);
} else {
if (count($enabled_languages) > 1) {
require __DIR__.'/includes/core_mlang_hub_include.php';
}
}

if (!defined('LANGUAGE'wink)
define('LANGUAGE', $current_user_language);
if (!defined('LOCALESET'wink)
define('LOCALESET', $current_user_language.'/'wink;

Thanks for your assistance
Dennis
0 replies
There are no post found.

Category Forum

Installation Issues- 9

Labels

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

D
D
dev723 10
Dennis
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet