need to init lang even earlier

This commit is contained in:
Ralf Becker 2012-05-15 12:48:45 +00:00
parent 6d1dc16ac3
commit 4ea76b4a95

View File

@ -595,6 +595,7 @@ class calendar_boupdate extends calendar_bo
{ {
$user = $temp_user['account_id']; $user = $temp_user['account_id'];
} }
$lang = $GLOBALS['egw_info']['user']['preferences']['common']['lang'];
if ($GLOBALS['egw']->preferences->account_id != $user) if ($GLOBALS['egw']->preferences->account_id != $user)
{ {
$GLOBALS['egw']->preferences->__construct($user); $GLOBALS['egw']->preferences->__construct($user);
@ -690,7 +691,6 @@ class calendar_boupdate extends calendar_bo
$enddate = new egw_time($event['end']); $enddate = new egw_time($event['end']);
$modified = new egw_time($event['modified']); $modified = new egw_time($event['modified']);
if ($old_event != False) $olddate = new egw_time($old_event['start']); if ($old_event != False) $olddate = new egw_time($old_event['start']);
$lang = $GLOBALS['egw_info']['user']['preferences']['common']['lang'];
foreach($to_notify as $userid => $statusid) foreach($to_notify as $userid => $statusid)
{ {
unset($res_info); unset($res_info);