|
@@ 1218-1223 (lines=6) @@
|
| 1215 |
|
$family = Family::getInstance($xref, $controller->tree()); |
| 1216 |
|
check_record_access($family); |
| 1217 |
|
|
| 1218 |
|
if (!Filter::checkCsrf()) { |
| 1219 |
|
$famtag = Filter::get('famtag', 'HUSB|WIFE'); |
| 1220 |
|
header('Location: edit_interface.php?action=add_spouse_to_family&xref=' . $xref . '&famtag=' . $famtag); |
| 1221 |
|
|
| 1222 |
|
break; |
| 1223 |
|
} |
| 1224 |
|
|
| 1225 |
|
// Create the new spouse |
| 1226 |
|
FunctionsEdit::splitSource(); // separate SOUR record from the rest |
|
@@ 1449-1454 (lines=6) @@
|
| 1446 |
|
$text = Filter::postArray('text'); |
| 1447 |
|
$islink = Filter::postArray('islink', '[01]'); |
| 1448 |
|
|
| 1449 |
|
if (!Filter::checkCsrf()) { |
| 1450 |
|
$famtag = Filter::get('famtag', 'HUSB|WIFE'); |
| 1451 |
|
header('Location: edit_interface.php?action=linkspouse&xref=' . $xref . '&famtag=' . $famtag); |
| 1452 |
|
|
| 1453 |
|
break; |
| 1454 |
|
} |
| 1455 |
|
|
| 1456 |
|
$person = Individual::getInstance($xref, $controller->tree()); |
| 1457 |
|
$spouse = Individual::getInstance($spid, $controller->tree()); |