From ddd13e86204158c696b430628af349acde89550c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 16 Feb 2012 16:55:42 +0000 Subject: [PATCH] Add 'selected' day table for daily schedules --- calendar/inc/class.calendar_merge.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calendar/inc/class.calendar_merge.inc.php b/calendar/inc/class.calendar_merge.inc.php index d3576479a8..f01a141d7d 100644 --- a/calendar/inc/class.calendar_merge.inc.php +++ b/calendar/inc/class.calendar_merge.inc.php @@ -39,6 +39,7 @@ class calendar_merge extends bo_merge 'today', 'tomorrow', 'yesterday', + 'selected', ); /** @@ -337,6 +338,10 @@ class calendar_merge extends bo_merge $date = $this->bo->date2ts($date); if(is_array($id) && $id['start'] && ($date < $id['start'] || $date > $id['end'])) return array(); } + elseif ($plugin == 'selected') + { + $date = $id['start']; + } else { $date = strtotime($plugin);