diff options
| author | Greg Roach <fisharebest@gmail.com> | 2021-04-08 08:59:22 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2021-04-19 13:22:34 +0100 |
| commit | 6fcafd028e511367c3fcdbfaa31aa05a85bf85c0 (patch) | |
| tree | 52547e7e9563f3798c195013d9868ae864cf7469 /app/Functions/FunctionsPrintFacts.php | |
| parent | 194b0938bfa145814c8ade07169d1464fa285e2a (diff) | |
| download | webtrees-6fcafd028e511367c3fcdbfaa31aa05a85bf85c0.tar.gz webtrees-6fcafd028e511367c3fcdbfaa31aa05a85bf85c0.tar.bz2 webtrees-6fcafd028e511367c3fcdbfaa31aa05a85bf85c0.zip | |
Per-language relationship logic - Fixes: #1206, Fixes: #3115, Fixes: #3819, Fixes: #1236, Fixes: #2331
Diffstat (limited to 'app/Functions/FunctionsPrintFacts.php')
| -rw-r--r-- | app/Functions/FunctionsPrintFacts.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Functions/FunctionsPrintFacts.php b/app/Functions/FunctionsPrintFacts.php index c9036e9981..064233c42c 100644 --- a/app/Functions/FunctionsPrintFacts.php +++ b/app/Functions/FunctionsPrintFacts.php @@ -38,6 +38,7 @@ use Fisharebest\Webtrees\Module\RelationshipsChartModule; use Fisharebest\Webtrees\Note; use Fisharebest\Webtrees\Registry; use Fisharebest\Webtrees\Services\ModuleService; +use Fisharebest\Webtrees\Services\RelationshipService; use Fisharebest\Webtrees\Tree; use Ramsey\Uuid\Uuid; @@ -386,7 +387,7 @@ class FunctionsPrintFacts if ($module instanceof RelationshipsChartModule) { foreach ($associates as $associate) { - $relationship_name = Functions::getCloseRelationshipName($associate, $person); + $relationship_name = app(RelationshipService::class)->getCloseRelationshipName($associate, $person); if ($relationship_name === '') { $relationship_name = GedcomTag::getLabel('RELA'); } |
