@@ -180,18 +183,11 @@
$phpgw->db->lock("preferences");
- $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"maxmatchs","common");
- $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"tz_offset","common");
- $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"dateformat","common");
- $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"timeformat","common");
- $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"lang","common");
- $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"default_app","common");
- $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"currency","common");
-
- if ($navbar_text) {
- $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"navbar_text","common");
+ while ($setting = each($settings)) {
+ $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],$setting[0],"common",$setting[1]);
}
+ // This one is specialized, so we do it manually
if ($phpgw_info["user"]["apps"]["admin"]) {
if ($show_currentusers) {
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"show_currentusers","common");