summaryrefslogtreecommitdiff
path: root/includes/classes
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-11-10 19:40:03 +0000
committerfisharebest <fisharebest@gmail.com>2010-11-10 19:40:03 +0000
commitd29dc0ca82ab452881da961072612c0af2a19290 (patch)
tree0a97e64b2696a22da28c44346e3f8e7db2cdbfd8 /includes/classes
parent06c824122df25b3f471de9cb9d18edadf82e4afb (diff)
downloadwebtrees-d29dc0ca82ab452881da961072612c0af2a19290.tar.gz
webtrees-d29dc0ca82ab452881da961072612c0af2a19290.tar.bz2
webtrees-d29dc0ca82ab452881da961072612c0af2a19290.zip
Move histo.XX.php files from (non-existant) /languages/ directory to the /data/ directory
Diffstat (limited to 'includes/classes')
-rw-r--r--includes/classes/class_person.php4
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) {