summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-11-11 09:55:22 +0000
committerGreg Roach <fisharebest@webtrees.net>2018-11-18 09:14:43 +0000
commit7b7d8067c3f26e71ae2fa194c3d6722f7d6ebd5a (patch)
treeadddab376c359c67846607eb6d2155c477e6e87b /resources
parent138ca96c29e1b115c3b96889a80267d29566502e (diff)
downloadwebtrees-7b7d8067c3f26e71ae2fa194c3d6722f7d6ebd5a.tar.gz
webtrees-7b7d8067c3f26e71ae2fa194c3d6722f7d6ebd5a.tar.bz2
webtrees-7b7d8067c3f26e71ae2fa194c3d6722f7d6ebd5a.zip
Rename Fact::getLabel() to label()
Diffstat (limited to 'resources')
-rw-r--r--resources/views/admin/fix-level-0-media-action.phtml2
-rw-r--r--resources/views/modules/todays_events/list.phtml2
-rw-r--r--resources/views/modules/todays_events/table.phtml4
-rw-r--r--resources/views/modules/upcoming_events/list.phtml2
-rw-r--r--resources/views/modules/upcoming_events/table.phtml4
-rw-r--r--resources/views/timeline-chart.phtml2
6 files changed, 8 insertions, 8 deletions
diff --git a/resources/views/admin/fix-level-0-media-action.phtml b/resources/views/admin/fix-level-0-media-action.phtml
index d6919d9a3a..d678c2a75a 100644
--- a/resources/views/admin/fix-level-0-media-action.phtml
+++ b/resources/views/admin/fix-level-0-media-action.phtml
@@ -9,6 +9,6 @@
data-media-xref="<?= e($media->getXref()) ?>"
type="button"
>
- <?= $fact->getLabel() ?>
+ <?= $fact->label() ?>
<?= $fact->date()->display(false, '%Y', false) ?>
</button>
diff --git a/resources/views/modules/todays_events/list.phtml b/resources/views/modules/todays_events/list.phtml
index 6149117d4a..770f4f3d1b 100644
--- a/resources/views/modules/todays_events/list.phtml
+++ b/resources/views/modules/todays_events/list.phtml
@@ -10,7 +10,7 @@
<?= $record->getSexImage() ?>
<?php endif ?>
<div class="indent">
- <?= $fact->getLabel() . ' — ' . $fact->date()->display(true); ?>
+ <?= $fact->label() . ' — ' . $fact->date()->display(true); ?>
<?= ' (' . I18N::timeAgo($fact->anniv * 365 * 24 * 60 * 60) . ')'; ?>
<?php if (!$fact->place()->isEmpty()) : ?>
<?= ' — <a href="' . $fact->place()->getURL() . '">' . $fact->place()->getFullName() . '</a>'; ?>
diff --git a/resources/views/modules/todays_events/table.phtml b/resources/views/modules/todays_events/table.phtml
index 0d69bb08d1..c14354c885 100644
--- a/resources/views/modules/todays_events/table.phtml
+++ b/resources/views/modules/todays_events/table.phtml
@@ -38,8 +38,8 @@
<td data-sort="<?= $fact->anniv ?>">
<?= $fact->anniv ?>
</td>
- <td data-sort="<?= $fact->getLabel() ?>">
- <?= $fact->getLabel() ?>
+ <td data-sort="<?= $fact->label() ?>">
+ <?= $fact->label() ?>
</td>
</tr>
<?php endforeach ?>
diff --git a/resources/views/modules/upcoming_events/list.phtml b/resources/views/modules/upcoming_events/list.phtml
index 6149117d4a..770f4f3d1b 100644
--- a/resources/views/modules/upcoming_events/list.phtml
+++ b/resources/views/modules/upcoming_events/list.phtml
@@ -10,7 +10,7 @@
<?= $record->getSexImage() ?>
<?php endif ?>
<div class="indent">
- <?= $fact->getLabel() . ' — ' . $fact->date()->display(true); ?>
+ <?= $fact->label() . ' — ' . $fact->date()->display(true); ?>
<?= ' (' . I18N::timeAgo($fact->anniv * 365 * 24 * 60 * 60) . ')'; ?>
<?php if (!$fact->place()->isEmpty()) : ?>
<?= ' — <a href="' . $fact->place()->getURL() . '">' . $fact->place()->getFullName() . '</a>'; ?>
diff --git a/resources/views/modules/upcoming_events/table.phtml b/resources/views/modules/upcoming_events/table.phtml
index 0d69bb08d1..c14354c885 100644
--- a/resources/views/modules/upcoming_events/table.phtml
+++ b/resources/views/modules/upcoming_events/table.phtml
@@ -38,8 +38,8 @@
<td data-sort="<?= $fact->anniv ?>">
<?= $fact->anniv ?>
</td>
- <td data-sort="<?= $fact->getLabel() ?>">
- <?= $fact->getLabel() ?>
+ <td data-sort="<?= $fact->label() ?>">
+ <?= $fact->label() ?>
</td>
</tr>
<?php endforeach ?>
diff --git a/resources/views/timeline-chart.phtml b/resources/views/timeline-chart.phtml
index c9e65f15cc..50f74144b9 100644
--- a/resources/views/timeline-chart.phtml
+++ b/resources/views/timeline-chart.phtml
@@ -330,7 +330,7 @@
echo $event->record()->getFullName() . ' — ';
}
$record = $event->record();
- echo $event->getLabel();
+ echo $event->label();
echo ' — ';
if ($record instanceof Individual) {
echo FunctionsPrint::formatFactDate($event, $record, false, false);