projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LAYOUT: fixed position of .joingame (had left:0;)
[e-DoKo.git]
/
include
/
db.php
diff --git
a/include/db.php
b/include/db.php
index 2a927f5773019ab99923b1ce57137e953110d6e1..bd50189d69f8435784144621a9d5ccbe4b5e3cd1 100644
(file)
--- a/
include/db.php
+++ b/
include/db.php
@@
-772,6
+772,7
@@
function DB_get_PREF($myid)
$PREF['vacation_start'] = NULL;
$PREF['vacation_stop'] = NULL;
$PREF['vacation_comment'] = '';
$PREF['vacation_start'] = NULL;
$PREF['vacation_stop'] = NULL;
$PREF['vacation_comment'] = '';
+ $PREF['language'] = 'en';
/* get all preferences */
$r = DB_query('SELECT pref_key, value FROM User_Prefs'.
/* get all preferences */
$r = DB_query('SELECT pref_key, value FROM User_Prefs'.
@@
-782,7
+783,7
@@
function DB_get_PREF($myid)
{
case 'cardset':
/* licence only valid until then */
{
case 'cardset':
/* licence only valid until then */
- if($pref[1]=='altenburg' && (time()-strtotime( '20
09
-12-31 23:59:59')<0) )
+ if($pref[1]=='altenburg' && (time()-strtotime( '20
12
-12-31 23:59:59')<0) )
$PREF['cardset']='altenburg';
break;
$PREF['cardset']='altenburg';
break;
@@
-825,8
+826,14
@@
function DB_get_PREF($myid)
if($pref[1])
$PREF['vacation_comment'] = $pref[1];
break;
if($pref[1])
$PREF['vacation_comment'] = $pref[1];
break;
+
+ case 'language':
+ if($pref[1])
+ $PREF['language'] = $pref[1];
+ break;
}
}
}
}
+ $_SESSION['language'] = $PREF['language'];
return $PREF;
}
return $PREF;
}