forked from extern/egroupware
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:
parent
519c8e4e43
commit
7aa859949b
@ -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;
|
||||
|
||||
|
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user