diff options
author | Arun Persaud <arun@nubati.net> | 2013-03-31 16:53:00 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2013-03-31 16:53:00 -0700 |
commit | 993e166c1634e0329547ea240e948e3feadef5ad (patch) | |
tree | 48d7f4179e1594f0c636aa3d662e9d8d28ee58a8 /include | |
parent | cc5ee43f916eb57516adfbd8c37f024cc9c728cb (diff) | |
download | e-DoKo-993e166c1634e0329547ea240e948e3feadef5ad.tar.gz e-DoKo-993e166c1634e0329547ea240e948e3feadef5ad.tar.bz2 e-DoKo-993e166c1634e0329547ea240e948e3feadef5ad.zip |
added a new set of LGPL licensed cards
Diffstat (limited to 'include')
-rw-r--r-- | include/db.php | 2 | ||||
-rw-r--r-- | include/preferences.php | 11 |
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"; |