mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
Re-init egw_time so it gets the appropriate preferences for the notification
This commit is contained in:
parent
ab601bf94c
commit
e7b7b78e92
@ -635,6 +635,9 @@ abstract class bo_tracking
|
|||||||
$GLOBALS['egw']->preferences->__construct($GLOBALS['egw_info']['user']['account_id']);
|
$GLOBALS['egw']->preferences->__construct($GLOBALS['egw_info']['user']['account_id']);
|
||||||
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository(false); // no session prefs!
|
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository(false); // no session prefs!
|
||||||
unset($this->save_prefs);
|
unset($this->save_prefs);
|
||||||
|
|
||||||
|
// Re-load date/time preferences
|
||||||
|
egw_time::init();
|
||||||
}
|
}
|
||||||
if ($GLOBALS['egw_info']['user']['preferences']['common']['lang'] != translation::$userlang)
|
if ($GLOBALS['egw_info']['user']['preferences']['common']['lang'] != translation::$userlang)
|
||||||
{
|
{
|
||||||
@ -695,6 +698,9 @@ abstract class bo_tracking
|
|||||||
translation::init();
|
translation::init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load date/time preferences into egw_time
|
||||||
|
egw_time::init();
|
||||||
|
|
||||||
// Cache message body to not have to re-generate it every time
|
// Cache message body to not have to re-generate it every time
|
||||||
static $body_cache = array();
|
static $body_cache = array();
|
||||||
$lang = translation::$userlang;
|
$lang = translation::$userlang;
|
||||||
|
Loading…
Reference in New Issue
Block a user