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 /resources/views/modules/relatives/family.phtml | |
| 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 'resources/views/modules/relatives/family.phtml')
| -rw-r--r-- | resources/views/modules/relatives/family.phtml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml index 22722717a9..f961502611 100644 --- a/resources/views/modules/relatives/family.phtml +++ b/resources/views/modules/relatives/family.phtml @@ -10,6 +10,7 @@ use Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyPage; use Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Individual; +use Fisharebest\Webtrees\Services\RelationshipService; /** * @var Family $family @@ -44,7 +45,7 @@ use Fisharebest\Webtrees\Individual; <tr class="<?= $row_class ?>"> <th scope="row"> <?= $individual === $person ? '<i class="icon-selected"></i>' : '' ?> - <?= Functions::getCloseRelationshipName($individual, $person) ?> + <?= app(RelationshipService::class)->getCloseRelationshipName($individual, $person) ?> </th> <td class="border-0 p-0"> <?= view('chart-box', ['individual' => $person]) ?> @@ -82,7 +83,7 @@ use Fisharebest\Webtrees\Individual; <tr class="<?= $row_class ?>"> <th scope="row"> <?= $individual === $person ? '<i class="icon-selected"></i>' : '' ?> - <?= Functions::getCloseRelationshipName($individual, $person) ?> + <?= app(RelationshipService::class)->getCloseRelationshipName($individual, $person) ?> </th> <td class="border-0 p-0"> <?= view('chart-box', ['individual' => $person]) ?> @@ -197,7 +198,7 @@ use Fisharebest\Webtrees\Individual; </div> <?php endif ?> - <?= Functions::getCloseRelationshipName($individual, $person) ?> + <?= app(RelationshipService::class)->getCloseRelationshipName($individual, $person) ?> </th> <td class="border-0 p-0"> <?= view('chart-box', ['individual' => $person]) ?> |
