summaryrefslogtreecommitdiff
path: root/app/Functions/FunctionsPrintFacts.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Functions/FunctionsPrintFacts.php')
-rw-r--r--app/Functions/FunctionsPrintFacts.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Functions/FunctionsPrintFacts.php b/app/Functions/FunctionsPrintFacts.php
index 87bc49707a..0195ec4057 100644
--- a/app/Functions/FunctionsPrintFacts.php
+++ b/app/Functions/FunctionsPrintFacts.php
@@ -162,10 +162,10 @@ class FunctionsPrintFacts
$styles[] = 'wt-historic-fact collapse';
}
- // Use marriage type as the label.
- if ($tag === 'MARR' && $type !== '') {
- $label = Registry::elementFactory()->make($fact->tag() . ':TYPE')->value($type, $tree);
- $type = ''; // Do not print this again
+ // Use marriage type as the label. e.g. "Civil partnership"
+ if ($tag === 'MARR') {
+ $label = $fact->label();
+ $type = '';
}
echo '<tr class="', implode(' ', $styles), '">';