diff --git a/calendar/inc/class.calendar.inc.php b/calendar/inc/class.calendar.inc.php index 8e8b68e10f..4daf6f1ec0 100755 --- a/calendar/inc/class.calendar.inc.php +++ b/calendar/inc/class.calendar.inc.php @@ -618,7 +618,7 @@ class calendar extends calendar_ } } - function mini_calendar($day,$month,$year,$link='',$buttons="none") + function mini_calendar($day,$month,$year,$link='',$buttons="none",$outside_month=True) { global $phpgw, $phpgw_info, $view; @@ -734,14 +734,18 @@ class calendar extends calendar_ } else { -// $p->set_var('day_image',''); -// $p->set_var('bgcolor2','#FEFEFE'); -// $p->set_var('dayname',''); - - $p->set_var('bgcolor2','#FEFEFE'); - $p->set_var('dayname',''.$cal['day'].''); + if($outside_month == True) + { + $p->set_var('bgcolor2','#FEFEFE'); + $p->set_var('dayname',''.$cal['day'].''); + } + else + { + $p->set_var('day_image',''); + $p->set_var('bgcolor2','#FEFEFE'); + $p->set_var('dayname',''); + } } - $p->parse('monthweek_day','mini_day',True); } $p->parse('display_monthweek','mini_week',True); diff --git a/calendar/year.php b/calendar/year.php index 8c57a4e590..d282f28ae7 100755 --- a/calendar/year.php +++ b/calendar/year.php @@ -68,9 +68,9 @@ for($i=1;$i<13;$i++) { echo ''; if(!$friendly) - echo $phpgw->calendar->mini_calendar($i,$i,$year,'day.php'); + echo $phpgw->calendar->mini_calendar($i,$i,$year,'day.php','none',False); else - echo $phpgw->calendar->mini_calendar($i,$i,$year); + echo $phpgw->calendar->mini_calendar($i,$i,$year,'','none',False); echo ''; if($i==6) echo ''; }