From 4ea76b4a95e09ae03bad816f72a53af7f4d6e7cf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 15 May 2012 12:48:45 +0000 Subject: [PATCH] need to init lang even earlier --- calendar/inc/class.calendar_boupdate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index 86dd58e6a5..224f0ba40f 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -595,6 +595,7 @@ class calendar_boupdate extends calendar_bo { $user = $temp_user['account_id']; } + $lang = $GLOBALS['egw_info']['user']['preferences']['common']['lang']; if ($GLOBALS['egw']->preferences->account_id != $user) { $GLOBALS['egw']->preferences->__construct($user); @@ -690,7 +691,6 @@ class calendar_boupdate extends calendar_bo $enddate = new egw_time($event['end']); $modified = new egw_time($event['modified']); 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) { unset($res_info);