Change link title so it can give the date for a particular recurrence, if the passed id is in the form CAL_ID-RECUR_DATE

This commit is contained in:
Nathan Gray 2010-09-03 18:04:48 +00:00
parent 26838d34a7
commit 49471c5e2b

View File

@ -1666,7 +1666,12 @@ class calendar_bo
*/
function link_title($event)
{
if (!is_array($event) && (int) $event > 0)
if (!is_array($event) && strpos($event, '-') !== false)
{
list($id, $recur) = explode('-', $event, 2);
$event = $this->read($id, $recur);
}
else if (!is_array($event) && (int) $event > 0)
{
$event = $this->read($event);
}