summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-06-14 21:14:27 +0000
committerfisharebest <fisharebest@gmail.com>2013-06-14 21:14:27 +0000
commit56413ace074c4937037dcc6c3ca38583c4b31183 (patch)
tree19b1be75f9fe6e2720b2cd21f3363c4e1a203734 /library
parentc811aabc5e59dbcbdb371b8d79f96c0c49801076 (diff)
downloadwebtrees-56413ace074c4937037dcc6c3ca38583c4b31183.tar.gz
webtrees-56413ace074c4937037dcc6c3ca38583c4b31183.tar.bz2
webtrees-56413ace074c4937037dcc6c3ca38583c4b31183.zip
#1089932 - Fanchart doesn't show baptism/burial years
Diffstat (limited to 'library')
-rw-r--r--library/WT/Controller/Fanchart.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/library/WT/Controller/Fanchart.php b/library/WT/Controller/Fanchart.php
index e8b861bc71..2b86dab1d6 100644
--- a/library/WT/Controller/Fanchart.php
+++ b/library/WT/Controller/Fanchart.php
@@ -232,14 +232,7 @@ class WT_Controller_Fanchart extends WT_Controller_Chart {
$text = reverseText($name) . "\n";
if (!empty($addname)) $text .= reverseText($addname). "\n";
- if ($person->canDisplayDetails()) {
- $birthrec = get_sub_record(1, "1 BIRT", $person->getGedcomRecord());
- $ct = preg_match("/2 DATE.*(\d\d\d\d)/", $birthrec, $match);
- if ($ct>0) $text.= trim($match[1]);
- $deathrec = get_sub_record(1, "1 DEAT", $person->getGedcomRecord());
- $ct = preg_match("/2 DATE.*(\d\d\d\d)/", $deathrec, $match);
- if ($ct>0) $text.= "-".trim($match[1]);
- }
+ $text .= $person->getLifeSpan();
$text = unhtmlentities($text);
$text = strip_tags($text);