aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2005-04-26 09:46:33 +0000
committergweltas <gweltas@piwigo.org>2005-04-26 09:46:33 +0000
commit9dc9c553d39e20aa110cb66124fc3e5a5ea1af33 (patch)
treeda5f78a1b9eacc4a76e29aaa21d5de5d947d9313 /include
parent60ed679b36df10e5ded2c0a9190ac10f95f2143a (diff)
Bug 99 : javascript error in profile.php
Enhancement of the radio class under IE git-svn-id: http://piwigo.org/svn/trunk@772 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/user.inc.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/user.inc.php b/include/user.inc.php
index f64c28a46..6e5e0c8ed 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -25,8 +25,17 @@
// | USA. |
// +-----------------------------------------------------------------------+
-// retrieving connected user informations
+// Dynamic change of language with database persistency
+if (isset($_POST['language']))
+{
+ $query = "UPDATE ".USERS_TABLE." SET language = '";
+ $query.= $_POST['language'];
+ $query.= "' WHERE id = ".$_POST['userid'].";";
+ pwg_query($query);
+}
+
+// retrieving connected user informations
if (isset($_COOKIE['id']))
{
$session_id = $_COOKIE['id'];