diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-02-15 21:08:11 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-02-16 14:26:05 +0000 |
| commit | 39ca88ba08cefcfcaf891abfcf748f9c808eb326 (patch) | |
| tree | 09fb6844b1e44eeb1755671f00317f914644231b /resources/views/modules/relatives/family.phtml | |
| parent | 888ddf4f75ad7e5e5b322ccfa329fb24ddc9af04 (diff) | |
| download | webtrees-39ca88ba08cefcfcaf891abfcf748f9c808eb326.tar.gz webtrees-39ca88ba08cefcfcaf891abfcf748f9c808eb326.tar.bz2 webtrees-39ca88ba08cefcfcaf891abfcf748f9c808eb326.zip | |
Rename functions getFoo() to foo() and return collections instead of arrays
Diffstat (limited to 'resources/views/modules/relatives/family.phtml')
| -rw-r--r-- | resources/views/modules/relatives/family.phtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml index 39f249f43a..6821633379 100644 --- a/resources/views/modules/relatives/family.phtml +++ b/resources/views/modules/relatives/family.phtml @@ -19,7 +19,7 @@ $found |= !$fact->isPendingDeletion(); $person = $fact->target(); if ($person instanceof Individual) { - $row_class = 'wt-gender-' . $person->getSex(); + $row_class = 'wt-gender-' . $person->sex(); if ($fact->isPendingAddition()) { $row_class .= ' new'; } elseif ($fact->isPendingDeletion()) { @@ -56,7 +56,7 @@ $person = $fact->target(); if ($person instanceof Individual) { $found |= !$fact->isPendingDeletion(); - $row_class = 'wt-gender-' . $person->getSex(); + $row_class = 'wt-gender-' . $person->sex(); if ($fact->isPendingAddition()) { $row_class .= ' new'; } elseif ($fact->isPendingDeletion()) { @@ -136,7 +136,7 @@ foreach ($family->facts(['CHIL'], false, $fam_access_level) as $fact) { $person = $fact->target(); if ($person instanceof Individual) { - $row_class = 'wt-gender-' . $person->getSex(); + $row_class = 'wt-gender-' . $person->sex(); if ($fact->isPendingAddition()) { $child_number++; $row_class .= ' new'; @@ -190,7 +190,7 @@ <?php if ($family->canEdit()) : ?> <tr> <th scope="row"> - <?php if (count($family->getChildren()) > 1) : ?> + <?php if (count($family->children()) > 1) : ?> <a href="<?= e(route('reorder-children', ['ged' => $family->tree()->name(), 'xref' => $family->xref()])) ?>"> <?= view('icons/reorder') ?> <?= I18N::translate('Re-order children') ?> |
