summaryrefslogtreecommitdiff
path: root/app/Services/CalendarService.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Services/CalendarService.php')
-rw-r--r--app/Services/CalendarService.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Services/CalendarService.php b/app/Services/CalendarService.php
index a854b48165..95d70d116b 100644
--- a/app/Services/CalendarService.php
+++ b/app/Services/CalendarService.php
@@ -120,7 +120,7 @@ class CalendarService
$record = Family::getInstance($row->xref, $tree, $row->gedcom);
}
$anniv_date = new Date($row->d_type . ' ' . $row->d_day . ' ' . $row->d_month . ' ' . $row->d_year);
- foreach ($record->getFacts() as $fact) {
+ foreach ($record->facts() as $fact) {
// For date ranges, we need a match on either the start/end.
if (($fact->date()->minimumJulianDay() === $anniv_date->minimumJulianDay() || $fact->date()->maximumJulianDay() == $anniv_date->maximumJulianDay()) && $fact->getTag() === $row->d_fact) {
$fact->anniv = 0;
@@ -379,7 +379,7 @@ class CalendarService
$record = Family::getInstance($row->xref, $tree, $row->gedcom);
}
$anniv_date = new Date($row->d_type . ' ' . $row->d_day . ' ' . $row->d_month . ' ' . $row->d_year);
- foreach ($record->getFacts() as $fact) {
+ foreach ($record->facts() as $fact) {
if (($fact->date()->minimumJulianDay() === $anniv_date->minimumJulianDay() || $fact->date()->maximumJulianDay() === $anniv_date->maximumJulianDay()) && $fact->getTag() === $row->d_fact) {
$fact->anniv = $row->d_year === '0' ? 0 : $anniv->year - $row->d_year;
$fact->jd = $jd;