From 2dd6c745a590bd870ddb9c51e399f17252f1e7b9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 11 Jun 2011 03:23:42 +0000 Subject: [PATCH] Fix: Style of current day was not visible --- htdocs/comm/action/index.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index f9c54d61003..74e7ece502b 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -659,12 +659,11 @@ if (empty($action) || $action == 'show_month') // View by month { $curtime = dol_mktime (0, 0, 0, $month, $tmpday, $year); - if ($curtime < $now) - $style='cal_current_month'; - else if($curtime == $now) - $style='cal_today'; - else $style='cal_current_month'; + $today=0; + $todayarray=dol_getdate($now,'fast'); + if ($todayarray['mday']==$tmpday && $todayarray['mon']==$month && $todayarray['year']==$year) $today=1; + if ($today) $style='cal_today'; echo ' '; show_day_events($db, $tmpday, $month, $year, $month, $style, $eventarray, $conf->global->AGENDA_MAX_EVENTS_DAY_VIEW, $maxlength, $newparam); @@ -764,11 +763,11 @@ else // View by day $db->close(); -/* TODO Add RSS Links +/* TODO Export print ' - - - + + +