summaryrefslogtreecommitdiff
path: root/app/Functions/FunctionsPrint.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-01-27 11:59:35 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-01-27 13:05:06 +0000
commit66ecd01738ea7f89ee5b1944d4d969facd03cb4e (patch)
treebf8bbadb611d94637deb83252d561d6925db69b0 /app/Functions/FunctionsPrint.php
parent203ccf04b147f0ec286f7c6e225c38732cc1e521 (diff)
downloadwebtrees-66ecd01738ea7f89ee5b1944d4d969facd03cb4e.tar.gz
webtrees-66ecd01738ea7f89ee5b1944d4d969facd03cb4e.tar.bz2
webtrees-66ecd01738ea7f89ee5b1944d4d969facd03cb4e.zip
Change signature of Date::display() to avoid having to use container as psuedo-global variable for $tree
Diffstat (limited to 'app/Functions/FunctionsPrint.php')
-rw-r--r--app/Functions/FunctionsPrint.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Functions/FunctionsPrint.php b/app/Functions/FunctionsPrint.php
index 7d060c15ad..b87ebb186e 100644
--- a/app/Functions/FunctionsPrint.php
+++ b/app/Functions/FunctionsPrint.php
@@ -263,7 +263,7 @@ class FunctionsPrint
if (preg_match('/\n2 DATE (.+)/', $factrec, $match)) {
$date = new Date($match[1]);
- $html .= ' ' . $date->display($anchor);
+ $html .= ' ' . $date->display($anchor ? $record->tree() : null, null, $anchor);
// time
if ($time && preg_match('/\n3 TIME (.+)/', $factrec, $match)) {
$html .= ' – <span class="date">' . $match[1] . '</span>';