summaryrefslogtreecommitdiff
path: root/resources/views
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views')
-rw-r--r--resources/views/chart-box.phtml2
-rw-r--r--resources/views/edit/edit-fact.phtml2
-rw-r--r--resources/views/media-page.phtml2
-rw-r--r--resources/views/modules/relatives/family.phtml4
-rw-r--r--resources/views/pending-changes-page.phtml4
5 files changed, 7 insertions, 7 deletions
diff --git a/resources/views/chart-box.phtml b/resources/views/chart-box.phtml
index b5164a7f40..9462e7247d 100644
--- a/resources/views/chart-box.phtml
+++ b/resources/views/chart-box.phtml
@@ -84,7 +84,7 @@ foreach ($individual->spouseFamilies() as $family) {
}
$all_facts = $all_facts->filter(static function (Fact $fact) use ($exclude): bool {
- return !in_array($fact->getTag(), $exclude, true);
+ return !in_array($fact->tag(), $exclude, true);
});
$all_facts = Fact::sortFacts($all_facts);
diff --git a/resources/views/edit/edit-fact.phtml b/resources/views/edit/edit-fact.phtml
index ac46c185c7..920fc6e7ac 100644
--- a/resources/views/edit/edit-fact.phtml
+++ b/resources/views/edit/edit-fact.phtml
@@ -19,7 +19,7 @@ use Ramsey\Uuid\Uuid;
<?php FunctionsEdit::createEditForm($edit_fact) ?>
<?php
- $level1type = $edit_fact->getTag();
+ $level1type = $edit_fact->tag();
switch ($record::RECORD_TYPE) {
case 'SOUR':
if ($level1type === 'DATA') {
diff --git a/resources/views/media-page.phtml b/resources/views/media-page.phtml
index 101bc09f67..123c16d3bd 100644
--- a/resources/views/media-page.phtml
+++ b/resources/views/media-page.phtml
@@ -154,7 +154,7 @@ use Illuminate\Support\Collection;
</tr>
<?php endforeach ?>
<?php foreach ($facts as $fact) : ?>
- <?php if ($fact->getTag() !== 'FILE') : ?>
+ <?php if ($fact->tag() !== 'FILE') : ?>
<?php FunctionsPrintFacts::printFact($fact, $media) ?>
<?php endif ?>
<?php endforeach ?>
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml
index f1166b534c..3dc547fa30 100644
--- a/resources/views/modules/relatives/family.phtml
+++ b/resources/views/modules/relatives/family.phtml
@@ -110,11 +110,11 @@ use Fisharebest\Webtrees\I18N; ?>
<tr class="<?= $row_class ?>">
<th scope="row">
- <span class="sr-only"><?= GedcomTag::getLabel($fact->getTag()) ?></span>
+ <span class="sr-only"><?= GedcomTag::getLabel($fact->tag()) ?></span>
</th>
<td>
- <?= GedcomTag::getLabelValue($fact->getTag(), $fact->date()->display() . ' — ' . $fact->place()->fullName()) ?>
+ <?= GedcomTag::getLabelValue($fact->tag(), $fact->date()->display() . ' — ' . $fact->place()->fullName()) ?>
</td>
</tr>
diff --git a/resources/views/pending-changes-page.phtml b/resources/views/pending-changes-page.phtml
index 70207d3081..62ab0edfcc 100644
--- a/resources/views/pending-changes-page.phtml
+++ b/resources/views/pending-changes-page.phtml
@@ -66,11 +66,11 @@ use Fisharebest\Webtrees\I18N;
<td>
<?php foreach ($record_change->record->facts() as $fact) : ?>
- <?php if ($fact->getTag() !== 'CHAN' && $fact->isPendingAddition()) : ?>
+ <?php if ($fact->tag() !== 'CHAN' && $fact->isPendingAddition()) : ?>
<div class="wt-new">
<?= strip_tags($fact->summary()) ?>
</div>
- <?php elseif ($fact->getTag() !== 'CHAN' && $fact->isPendingDeletion()) : ?>
+ <?php elseif ($fact->tag() !== 'CHAN' && $fact->isPendingDeletion()) : ?>
<div class="wt-old">
<?= strip_tags($fact->summary()) ?>
</div>