bugfix: calendar's default prefs where always in english, because quick_add selectbox is now part of the header and the header runs before the language gets read --> moved the call of bocal::check_set_default_prefs to the constructor of uical

This commit is contained in:
Ralf Becker 2007-04-26 15:29:15 +00:00
parent 519c8e4e43
commit 7aa859949b
2 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,6 @@ class bocal
}
$this->common_prefs =& $GLOBALS['egw_info']['user']['preferences']['common'];
$this->cal_prefs =& $GLOBALS['egw_info']['user']['preferences']['calendar'];
$this->check_set_default_prefs();
$this->tz_offset_s = $this->datetime->tz_offset;

View File

@ -156,6 +156,8 @@ class uical
}
$this->common_prefs = &$GLOBALS['egw_info']['user']['preferences']['common'];
$this->cal_prefs = &$GLOBALS['egw_info']['user']['preferences']['calendar'];
$this->bo->check_set_default_prefs();
$this->wd_start = 60*$this->cal_prefs['workdaystarts'];
$this->wd_end = 60*$this->cal_prefs['workdayends'];
$this->interval_m = $this->cal_prefs['interval'];