diff options
Diffstat (limited to 'includes/classes')
| -rw-r--r-- | includes/classes/class_person.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/classes/class_person.php b/includes/classes/class_person.php index 1bf8f98686..7ae7b45f31 100644 --- a/includes/classes/class_person.php +++ b/includes/classes/class_person.php @@ -1321,8 +1321,8 @@ class Person extends GedcomRecord { $dDate=$this->getEstimatedDeathDate(); if (!$bDate->isOK()) return; - if ($SHOW_RELATIVES_EVENTS && file_exists(WT_ROOT.'languages/histo.'.WT_LOCALE.'.php')) { - require WT_ROOT.'languages/histo.'.WT_LOCALE.'.php'; + if ($SHOW_RELATIVES_EVENTS && file_exists(get_site_setting('INDEX_DIRECTORY').'histo.'.WT_LOCALE.'.php')) { + require get_site_setting('INDEX_DIRECTORY').'histo.'.WT_LOCALE.'.php'; foreach ($histo as $indexval=>$hrec) { $sdate=new GedcomDate(get_gedcom_value('DATE', 2, $hrec, '', false)); if ($sdate->isOK() && GedcomDate::Compare($this->getEstimatedBirthDate(), $sdate)<=0 && GedcomDate::Compare($sdate, $this->getEstimatedDeathDate())<=0) { |
