summaryrefslogtreecommitdiff
path: root/resources/views/cards
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-11-17 15:22:08 +0000
committerGreg Roach <fisharebest@webtrees.net>2018-11-18 18:18:42 +0000
commit8d0ebef0d075981bd943e8256e2c81a3b1e92b4b (patch)
tree6ce584137d2125125417a6c749d5d5e9a11611f1 /resources/views/cards
parentada1c84947c5c97bcc08a94582e9443f18df3d13 (diff)
downloadwebtrees-8d0ebef0d075981bd943e8256e2c81a3b1e92b4b.tar.gz
webtrees-8d0ebef0d075981bd943e8256e2c81a3b1e92b4b.tar.bz2
webtrees-8d0ebef0d075981bd943e8256e2c81a3b1e92b4b.zip
Prefer class-constants to global-constants
Diffstat (limited to 'resources/views/cards')
-rw-r--r--resources/views/cards/add-source-citation.phtml11
1 files changed, 6 insertions, 5 deletions
diff --git a/resources/views/cards/add-source-citation.phtml b/resources/views/cards/add-source-citation.phtml
index 6481f36e47..d3fdab1a37 100644
--- a/resources/views/cards/add-source-citation.phtml
+++ b/resources/views/cards/add-source-citation.phtml
@@ -1,3 +1,4 @@
+<?php use Fisharebest\Webtrees\Gedcom; ?>
<?php use Fisharebest\Webtrees\GedcomTag; ?>
<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
<?php use Fisharebest\Webtrees\I18N; ?>
@@ -21,9 +22,9 @@
<input type="checkbox" name="SOUR_INDI" <?= $prefer_level2_sources === '2' ? 'checked' : '' ?> value="1">
<?= I18N::translate('Individual') ?>
</label>
- <?php if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $quick_required_facts, $matches)) : ?>
+ <?php if (preg_match_all('/(' . Gedcom::REGEX_TAG . ')/', $quick_required_facts, $matches)) : ?>
<?php foreach ($matches[1] as $match) : ?>
- <?php if (!in_array($match, explode('|', WT_EVENTS_DEAT))) : ?>
+ <?php if (!in_array($match, Gedcom::DEATH_EVENTS)) : ?>
<label>
<input type="checkbox" name="SOUR_<?= $match ?>" <?= $prefer_level2_sources === '1' ? 'checked' : '' ?> value="1">
<?= GedcomTag::getLabel($match) ?>
@@ -34,9 +35,9 @@
<?php endif ?>
<?php if (strpos($bdm, 'D') !== false) : ?>
- <?php if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $quick_required_facts, $matches)) : ?>
+ <?php if (preg_match_all('/(' . Gedcom::REGEX_TAG . ')/', $quick_required_facts, $matches)) : ?>
<?php foreach ($matches[1] as $match) : ?>
- <?php if (in_array($match, explode('|', WT_EVENTS_DEAT))) : ?>
+ <?php if (in_array($match,Gedcom::DEATH_EVENTS)) : ?>
<label>
<input type="checkbox" name="SOUR_<?= $match ?>" <?= $prefer_level2_sources === '1' ? 'checked' : '' ?> value="1">
<?= GedcomTag::getLabel($match) ?>
@@ -51,7 +52,7 @@
<input type="checkbox" name="SOUR_FAM" <?= $prefer_level2_sources === '2' ? 'checked' : '' ?> value="1">
<?= I18N::translate('Family') ?>
</label>
- <?php if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $quick_required_famfacts, $matches)) : ?>
+ <?php if (preg_match_all('/(' . Gedcom::REGEX_TAG . ')/', $quick_required_famfacts, $matches)) : ?>
<?php foreach ($matches[1] as $match) : ?>
<label>
<input type="checkbox" name="SOUR_<?= $match ?>" <?= $prefer_level2_sources === '1' ? 'checked' : '' ?> value="1">