summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-12-14 09:58:42 +0000
committerfisharebest <fisharebest@gmail.com>2010-12-14 09:58:42 +0000
commitd15e35b51becdd6825e1ca954f46c52ef85296a9 (patch)
treebe39daebd5862dd5c6bbf043bc4d644ed0c05ac3
parent55cef53619dbc350b705fa1a3561eed0e376dad8 (diff)
downloadwebtrees-d15e35b51becdd6825e1ca954f46c52ef85296a9.tar.gz
webtrees-d15e35b51becdd6825e1ca954f46c52ef85296a9.tar.bz2
webtrees-d15e35b51becdd6825e1ca954f46c52ef85296a9.zip
Fix bug from 10035
-rw-r--r--pgv_to_wt.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/pgv_to_wt.php b/pgv_to_wt.php
index 1c57084f69..1a938f4bc3 100644
--- a/pgv_to_wt.php
+++ b/pgv_to_wt.php
@@ -698,8 +698,8 @@ foreach (get_all_gedcoms() as $ged_id=>$gedcom) {
$SHOW_RELATIVES_EVENTS=preg_replace('/_FAMC_(RESI_EMIG)/', '', $SHOW_RELATIVES_EVENTS);
$SHOW_RELATIVES_EVENTS=preg_replace('/_MARR_(MOTH|FATH|FAMC)/', '_MARR_PARE', $SHOW_RELATIVES_EVENTS);
$SHOW_RELATIVES_EVENTS=preg_replace('/_DEAT_(MOTH|FATH)/', '_DEAT_PARE', $SHOW_RELATIVES_EVENTS);
- preg_match_all('/[_A-Z]+/', $setting, $match);
- set_gedcom_setting($gedcom_id, 'SHOW_RELATIVES_EVENTS', implode(',', array_unique($match[0])));
+ preg_match_all('/[_A-Z]+/', $SHOW_RELATIVES_EVENTS, $match);
+ set_gedcom_setting($ged_id, 'SHOW_RELATIVES_EVENTS', implode(',', array_unique($match[0])));
@set_gedcom_setting($ged_id, 'SHOW_RELATIVES_EVENTS', $SHOW_RELATIVES_EVENTS);
@set_gedcom_setting($ged_id, 'SHOW_SPIDER_TAGLINE', $SHOW_SPIDER_TAGLINE);