summaryrefslogtreecommitdiff
path: root/modules_v3
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-07-25 21:29:28 +0000
committerfisharebest <fisharebest@gmail.com>2013-07-25 21:29:28 +0000
commitd159306cd53891a2b185bba84002fb416efbc0b6 (patch)
tree3be48da6014a415a5be6cbf13a0f89d7aa0da9b0 /modules_v3
parentbdaa886988026758b6a42542da525c8e7fa9286f (diff)
downloadwebtrees-d159306cd53891a2b185bba84002fb416efbc0b6.tar.gz
webtrees-d159306cd53891a2b185bba84002fb416efbc0b6.tar.bz2
webtrees-d159306cd53891a2b185bba84002fb416efbc0b6.zip
1.5 - Events of close relatives shown before/after death
Diffstat (limited to 'modules_v3')
-rw-r--r--modules_v3/personal_facts/module.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules_v3/personal_facts/module.php b/modules_v3/personal_facts/module.php
index ca3dfb9bcf..5fcd2831bf 100644
--- a/modules_v3/personal_facts/module.php
+++ b/modules_v3/personal_facts/module.php
@@ -174,13 +174,13 @@ class personal_facts_WT_Module extends WT_Module implements WT_Module_Tab {
// Extra facts to be shown on this tabparent
private static function spouse_facts(WT_Individual $person, WT_Individual $spouse) {
- global $SHOW_RELATIVES_EVENTS;
+ global $controller, $SHOW_RELATIVES_EVENTS;
$facts = array();
if (strstr($SHOW_RELATIVES_EVENTS, '_DEAT_SPOU')) {
// Only include events between birth and death
- $birt_date = $person->getEstimatedBirthDate();
- $deat_date = $person->getEstimatedDeathDate();
+ $birt_date = $controller->record->getEstimatedBirthDate();
+ $deat_date = $controller->record->getEstimatedDeathDate();
foreach ($spouse->getFacts(WT_EVENTS_DEAT) as $fact) {
@@ -198,13 +198,13 @@ class personal_facts_WT_Module extends WT_Module implements WT_Module_Tab {
}
private static function child_facts(WT_Individual $person, WT_Family $family, $option, $relation) {
- global $SHOW_RELATIVES_EVENTS;
+ global $controller, $SHOW_RELATIVES_EVENTS;
$facts = array();
// Only include events between birth and death
- $birt_date = $person->getEstimatedBirthDate();
- $deat_date = $person->getEstimatedDeathDate();
+ $birt_date = $controller->record->getEstimatedBirthDate();
+ $deat_date = $controller->record->getEstimatedDeathDate();
// Deal with recursion.
switch ($option) {
@@ -322,13 +322,13 @@ class personal_facts_WT_Module extends WT_Module implements WT_Module_Tab {
}
private static function parent_facts(WT_Individual $person, $sosa) {
- global $SHOW_RELATIVES_EVENTS;
+ global $controller, $SHOW_RELATIVES_EVENTS;
$facts = array();
// Only include events between birth and death
- $birt_date = $person->getEstimatedBirthDate();
- $deat_date = $person->getEstimatedDeathDate();
+ $birt_date = $controller->record->getEstimatedBirthDate();
+ $deat_date = $controller->record->getEstimatedDeathDate();
if ($sosa == 1) {
foreach ($person->getChildFamilies() as $family) {