diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-04-16 12:01:34 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-04-16 12:01:34 +0100 |
| commit | 48f08416725e4311af2f3c16f83029e6949af2ce (patch) | |
| tree | adca7187b5916a752a93124afc8037af43569add /resources/views/modules/todays_events/list.phtml | |
| parent | 1f1ffa65b3b51df2b95b5c68894525436855964a (diff) | |
| download | webtrees-48f08416725e4311af2f3c16f83029e6949af2ce.tar.gz webtrees-48f08416725e4311af2f3c16f83029e6949af2ce.tar.bz2 webtrees-48f08416725e4311af2f3c16f83029e6949af2ce.zip | |
Fix: #2209 - 'time ago' calculations cause overflow on 32bit systems
Diffstat (limited to 'resources/views/modules/todays_events/list.phtml')
| -rw-r--r-- | resources/views/modules/todays_events/list.phtml | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/resources/views/modules/todays_events/list.phtml b/resources/views/modules/todays_events/list.phtml deleted file mode 100644 index b04e2489c0..0000000000 --- a/resources/views/modules/todays_events/list.phtml +++ /dev/null @@ -1,19 +0,0 @@ -<?php use Fisharebest\Webtrees\I18N; ?> -<?php use Fisharebest\Webtrees\Individual; ?> - -<?php foreach ($facts as $fact) : ?> - <?php $record = $fact->record(); ?> - <a href="<?= e($record->url()) ?>" class="list_item name2"> - <?= $record->fullName() ?> - </a> - <?php if ($record instanceof Individual) : ?> - <?= $record->getSexImage() ?> - <?php endif ?> - <div class="indent"> - <?= $fact->label() . ' — ' . $fact->date()->display(true); ?> - <?= ' (' . I18N::timeAgo($fact->anniv * 365 * 24 * 60 * 60) . ')'; ?> - <?php if ($fact->place()->gedcomName() !== '') : ?> - <?= ' — <a href="' . e($fact->place()->url()) . '">' . $fact->place()->fullName() . '</a>'; ?> - <?php endif ?> - </div> -<?php endforeach ?> |
