aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/classes/user.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-01-16 17:38:22 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-01-16 17:38:22 +0000
commit1251828e437a61ae0ad8bcb6722a49773ed1c2c5 (patch)
tree5f86c5b89e54aa40c8ca73812c3474e423509a6e /phpBB/includes/classes/user.php
parent4f9028df6022abac5886a374f9ea6dc84a9a63f2 (diff)
downloadforums-1251828e437a61ae0ad8bcb6722a49773ed1c2c5.tar
forums-1251828e437a61ae0ad8bcb6722a49773ed1c2c5.tar.gz
forums-1251828e437a61ae0ad8bcb6722a49773ed1c2c5.tar.bz2
forums-1251828e437a61ae0ad8bcb6722a49773ed1c2c5.tar.xz
forums-1251828e437a61ae0ad8bcb6722a49773ed1c2c5.zip
update user lang too
git-svn-id: file:///svn/phpbb/trunk@9269 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/classes/user.php')
-rw-r--r--phpBB/includes/classes/user.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/includes/classes/user.php b/phpBB/includes/classes/user.php
index bc017c69e0..a050c43fbb 100644
--- a/phpBB/includes/classes/user.php
+++ b/phpBB/includes/classes/user.php
@@ -198,6 +198,12 @@ class phpbb_user extends phpbb_session
$this->lang_name = $lang_name;
}
+ // Set data language in case we have a user where this is not set
+ if (empty($this->data['user_lang']))
+ {
+ $this->data['user_lang'] = $this->lang_name;
+ }
+
// We include common language file here to not load it every time a custom language file is included
$lang = &$this->lang;
@@ -344,7 +350,7 @@ class phpbb_user extends phpbb_session
'theme_storedb' => 1
);
- phpbb::$db->sql_handle_data('UPDATE', STYLES_THEME_TABLE, $sql_ary, 'theme_id = ' . $this->theme['theme_id']);
+ phpbb::$db->sql_query('UPDATE ' . STYLES_THEME_TABLE . ' SET ' . phpbb::$db->sql_build_array('UPDATE', $sql_ary) . ' WHERE theme_id = ' . $this->theme['theme_id']);
unset($sql_ary);
}