Add 'selected' day table for daily schedules

This commit is contained in:
Nathan Gray 2012-02-16 16:55:42 +00:00
parent 9a3ef9f726
commit ddd13e8620

View File

@ -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);