summaryrefslogtreecommitdiff
path: root/app/Functions/Functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Functions/Functions.php')
-rw-r--r--app/Functions/Functions.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/Functions/Functions.php b/app/Functions/Functions.php
index 63f5609dfc..493a8a7661 100644
--- a/app/Functions/Functions.php
+++ b/app/Functions/Functions.php
@@ -677,15 +677,15 @@ class Functions
if ($person1 && $person2) {
foreach ($person1->getSpouseFamilies() as $family) {
if ($person2 === $family->getSpouse($person1)) {
- if ($family->getFacts('MARR')) {
- if ($family->getFacts(WT_EVENTS_DIV)) {
+ if ($family->facts('MARR')) {
+ if ($family->facts(WT_EVENTS_DIV)) {
return I18N::translate('ex-husband');
}
return I18N::translate('husband');
}
- if ($family->getFacts(WT_EVENTS_DIV)) {
+ if ($family->facts(WT_EVENTS_DIV)) {
return I18N::translateContext('MALE', 'ex-partner');
}
}
@@ -697,15 +697,15 @@ class Functions
if ($person1 && $person2) {
foreach ($person1->getSpouseFamilies() as $family) {
if ($person2 === $family->getSpouse($person1)) {
- if ($family->getFacts('MARR')) {
- if ($family->getFacts(WT_EVENTS_DIV)) {
+ if ($family->facts('MARR')) {
+ if ($family->facts(WT_EVENTS_DIV)) {
return I18N::translate('ex-wife');
}
return I18N::translate('wife');
}
- if ($family->getFacts(WT_EVENTS_DIV)) {
+ if ($family->facts(WT_EVENTS_DIV)) {
return I18N::translateContext('FEMALE', 'ex-partner');
}
}
@@ -717,15 +717,15 @@ class Functions
if ($person1 && $person2) {
foreach ($person1->getSpouseFamilies() as $family) {
if ($person2 === $family->getSpouse($person1)) {
- if ($family->getFacts('MARR')) {
- if ($family->getFacts(WT_EVENTS_DIV)) {
+ if ($family->facts('MARR')) {
+ if ($family->facts(WT_EVENTS_DIV)) {
return I18N::translate('ex-spouse');
}
return I18N::translate('spouse');
}
- if ($family->getFacts(WT_EVENTS_DIV)) {
+ if ($family->facts(WT_EVENTS_DIV)) {
return I18N::translate('ex-partner');
}
}