diff options
Diffstat (limited to '')
-rw-r--r-- | include/user.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/user.inc.php b/include/user.inc.php index b267790f8..1cb9ce7c0 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -69,6 +69,9 @@ if ($conf['apache_authentication'] and isset($_SERVER['REMOTE_USER'])) $user = build_user( $user['id'], ( defined('IN_ADMIN') and IN_ADMIN ) ? false : true // use cache ? ); - +if (is_a_guest() or is_generic()) +{ + $user['language'] = get_default_language(); +} trigger_action('user_init', $user); ?> |