summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/db.php2
-rw-r--r--include/preferences.php11
2 files changed, 12 insertions, 1 deletions
diff --git a/include/db.php b/include/db.php
index f9eb07a..2395908 100644
--- a/include/db.php
+++ b/include/db.php
@@ -808,6 +808,8 @@ function DB_get_PREF($myid)
switch($pref[0])
{
case 'cardset':
+ if($pref[1])
+ $PREF['cardset'] = $pref[1];
break;
case 'email':
diff --git a/include/preferences.php b/include/preferences.php
index f0b33da..a69fd56 100644
--- a/include/preferences.php
+++ b/include/preferences.php
@@ -472,7 +472,16 @@ echo " </td></tr>\n";
echo ' <tr><td>'.('Card set').": </td><td>\n";
echo " <select id=\"cards\" name=\"cards\" size=\"1\">\n";
-echo " <option value=\"english\" selected=\"selected\">"._('English cards')."</option>\n";
+if($PREF['cardset']=="english2")
+ {
+ echo " <option value=\"english\" >"._('English cards')."</option>\n";
+ echo " <option value=\"english2\" selected=\"selected\">"._('English cards 2')."</option>\n";
+ }
+ else /* default */
+ {
+ echo " <option value=\"english\" selected=\"selected\">"._('English cards')."</option>\n";
+ echo " <option value=\"english2\" >"._('English cards 2')."</option>\n";
+ };
echo " </select>";
if($changed_cards) echo _('changed');
echo " </td></tr>\n";