summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-06-25 11:34:02 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-06-25 13:06:45 +0100
commitd0889c636ab33113e71c9804803ddb055453ed50 (patch)
treea904a59e72ca2275b2a73fd3c1d0fe36517e2b5b /resources
parent4a329a6c01c20d02be68ca91d0a95e583f97cbe1 (diff)
downloadwebtrees-d0889c636ab33113e71c9804803ddb055453ed50.tar.gz
webtrees-d0889c636ab33113e71c9804803ddb055453ed50.tar.bz2
webtrees-d0889c636ab33113e71c9804803ddb055453ed50.zip
Remove deprecated function Fact::getTag()
Diffstat (limited to 'resources')
-rw-r--r--resources/views/pending-changes-page.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/views/pending-changes-page.phtml b/resources/views/pending-changes-page.phtml
index 494f27123d..b7ed13d984 100644
--- a/resources/views/pending-changes-page.phtml
+++ b/resources/views/pending-changes-page.phtml
@@ -62,11 +62,11 @@ use Fisharebest\Webtrees\Tree;
<td>
<?php foreach ($record_change->record->facts() as $fact) : ?>
- <?php if ($fact->getTag() !== 'CHAN' && $fact->isPendingAddition()) : ?>
+ <?php if (!str_ends_with($fact->tag(), ':CHAN') && $fact->isPendingAddition()) : ?>
<div class="wt-new">
<?= strip_tags($fact->summary()) ?>
</div>
- <?php elseif ($fact->getTag() !== 'CHAN' && $fact->isPendingDeletion()) : ?>
+ <?php elseif (!str_ends_with($fact->tag(), ':CHAN') && $fact->isPendingDeletion()) : ?>
<div class="wt-old">
<?= strip_tags($fact->summary()) ?>
</div>