|
@@ 767-772 (lines=6) @@
|
| 764 |
|
if ($expandRecurrence) { |
| 765 |
|
// If recurrent events should be expanded and no expand range has been specified, we |
| 766 |
|
// limit to +/- 5 years. |
| 767 |
|
if (!isset($expandStart)) { |
| 768 |
|
require_once $GLOBALS['babInstallPath'] . 'utilit/dateTime.php'; |
| 769 |
|
$expandStart = BAB_DateTime::now(); |
| 770 |
|
$expandStart->add(-5, BAB_DATETIME_YEAR); |
| 771 |
|
$expandStart = $expandStart->getICal(); |
| 772 |
|
} |
| 773 |
|
if (!isset($expandEnd)) { |
| 774 |
|
require_once $GLOBALS['babInstallPath'] . 'utilit/dateTime.php'; |
| 775 |
|
$expandEnd = BAB_DateTime::now(); |
|
@@ 773-778 (lines=6) @@
|
| 770 |
|
$expandStart->add(-5, BAB_DATETIME_YEAR); |
| 771 |
|
$expandStart = $expandStart->getICal(); |
| 772 |
|
} |
| 773 |
|
if (!isset($expandEnd)) { |
| 774 |
|
require_once $GLOBALS['babInstallPath'] . 'utilit/dateTime.php'; |
| 775 |
|
$expandEnd = BAB_DateTime::now(); |
| 776 |
|
$expandEnd->add(5, BAB_DATETIME_YEAR); |
| 777 |
|
$expandEnd = $expandEnd->getICal(); |
| 778 |
|
} |
| 779 |
|
} |
| 780 |
|
|
| 781 |
|
foreach ($eventsData[1] as $eventData) { |