diff --git a/calendar/inc/hook_home.inc.php b/calendar/inc/hook_home.inc.php index 963f0262e1..c8a496775f 100755 --- a/calendar/inc/hook_home.inc.php +++ b/calendar/inc/hook_home.inc.php @@ -22,11 +22,11 @@ } unset($d1); - if ($phpgw_info['user']['preferences']['calendar']['mainscreen_showevents']) + if ($GLOBALS['phpgw_info']['user']['preferences']['calendar']['mainscreen_showevents']) { global $date; - $time = time() - ((60*60) * intval($phpgw_info['user']['preferences']['common']['tz_offset'])); - $date = $phpgw->common->show_date($time,'Ymd'); + $time = time() - ((60*60) * intval($GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset'])); + $date = $GLOBALS['phpgw']->common->show_date($time,'Ymd'); $cal = CreateObject('calendar.uicalendar'); echo "\n".'
'."\n" . $cal->mini_calendar( @@ -37,8 +37,8 @@ 'link' => 'day' ) ).'' - . '
'.lang($phpgw->common->show_date($time,'F')).' '.$cal->bo->day.', ' - .$cal->bo->year.'
'.lang($GLOBALS['phpgw']->common->show_date($time,'F')).' '.$cal->bo->day.', ' + .$cal->bo->year.'
'.$cal->print_day( Array( 'year' => $cal->bo->year,