aboutsummaryrefslogtreecommitdiffstats
path: root/include/user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/user.inc.php')
-rw-r--r--include/user.inc.php5
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);
?>