forked from extern/egroupware
Changed over some of the hook_home files to GLOBALS.
This commit is contained in:
parent
7baec1451f
commit
e1daedd696
@ -22,11 +22,11 @@
|
|||||||
}
|
}
|
||||||
unset($d1);
|
unset($d1);
|
||||||
|
|
||||||
if ($phpgw_info['user']['preferences']['calendar']['mainscreen_showevents'])
|
if ($GLOBALS['phpgw_info']['user']['preferences']['calendar']['mainscreen_showevents'])
|
||||||
{
|
{
|
||||||
global $date;
|
global $date;
|
||||||
$time = time() - ((60*60) * intval($phpgw_info['user']['preferences']['common']['tz_offset']));
|
$time = time() - ((60*60) * intval($GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']));
|
||||||
$date = $phpgw->common->show_date($time,'Ymd');
|
$date = $GLOBALS['phpgw']->common->show_date($time,'Ymd');
|
||||||
$cal = CreateObject('calendar.uicalendar');
|
$cal = CreateObject('calendar.uicalendar');
|
||||||
echo "\n".'<tr valign="top"><td><table border="0" cols="3"><tr><td align="center" width="35%" valign="top"><!-- BEGIN Calendar info -->'."\n"
|
echo "\n".'<tr valign="top"><td><table border="0" cols="3"><tr><td align="center" width="35%" valign="top"><!-- BEGIN Calendar info -->'."\n"
|
||||||
. $cal->mini_calendar(
|
. $cal->mini_calendar(
|
||||||
@ -37,8 +37,8 @@
|
|||||||
'link' => 'day'
|
'link' => 'day'
|
||||||
)
|
)
|
||||||
).'</td><td align="center"><table border="0" width="100%" cellspacing="0" cellpadding="0">'
|
).'</td><td align="center"><table border="0" width="100%" cellspacing="0" cellpadding="0">'
|
||||||
. '<tr><td align="center">'.lang($phpgw->common->show_date($time,'F')).' '.$cal->bo->day.', '
|
. '<tr><td align="center">'.lang($GLOBALS['phpgw']->common->show_date($time,'F')).' '.$cal->bo->day.', '
|
||||||
.$cal->bo->year.'</tr></td><tr><td bgcolor="'.$phpgw_info['theme']['bg_text']
|
.$cal->bo->year.'</tr></td><tr><td bgcolor="'.$GLOBALS['phpgw_info']['theme']['bg_text']
|
||||||
.'" valign="top">'.$cal->print_day(
|
.'" valign="top">'.$cal->print_day(
|
||||||
Array(
|
Array(
|
||||||
'year' => $cal->bo->year,
|
'year' => $cal->bo->year,
|
||||||
|
Loading…
Reference in New Issue
Block a user