diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-09-18 12:56:03 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-09-18 12:56:03 +0000 |
| commit | 1df722b439888538e3343ba798449fa2e9a66a98 (patch) | |
| tree | 5d9c4ca604952b4d94504a2b2e51b066886b499c /includes | |
| parent | 48bc951efe3ed3d496377f7af759e4bee691cb4d (diff) | |
| download | webtrees-1df722b439888538e3343ba798449fa2e9a66a98.tar.gz webtrees-1df722b439888538e3343ba798449fa2e9a66a98.tar.bz2 webtrees-1df722b439888538e3343ba798449fa2e9a66a98.zip | |
Fix: clippings cart URLs do not reference gedcom
Simplify text on privatised records - it is sufficient to add a "private" label.
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/functions/functions_privacy.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/includes/functions/functions_privacy.php b/includes/functions/functions_privacy.php index 04d813a32a..3802927eff 100644 --- a/includes/functions/functions_privacy.php +++ b/includes/functions/functions_privacy.php @@ -487,7 +487,6 @@ function privatize_gedcom($gedrec) { if (preg_match('/\n1 SEX [MFU]/', $gedrec, $match)) { $newrec.=$match[0]; } - $newrec .= "\n1 NOTE ".i18n::translate('Details about this person are private. Personal details will not be included.'); break; case 'FAM': $newrec="0 @{$gid}@ FAM"; @@ -499,18 +498,23 @@ function privatize_gedcom($gedrec) { } } } - $newrec .= "\n1 NOTE ".i18n::translate('Details about this family are private. Family details will not be included.'); + break; + case 'NOTE': + $newrec="0 @{$gid}@ {$type} ".i18n::translate('Private'); break; case 'SOUR': - $newrec="0 @{$gid}@ SOUR\n1 TITL ".i18n::translate('Private'); + $newrec="0 @{$gid}@ {$type}\n1 TITL ".i18n::translate('Private'); break; - case 'OBJE': - $newrec="0 @{$gid}@ OBJE\n1 NOTE ".i18n::translate('Details about this media are private. Media details will not be included.'); + case 'REPO': + case 'SUBM': + $newrec="0 @{$gid}@ {$type}\n1 NAME ".i18n::translate('Private'); break; - case 'NOTE': - $newrec="0 @{$gid}@ NOTE ".i18n::translate('Details about this note are private. Note details will not be included.'); + case 'SUBN': + $newrec="0 @{$gid}@ {$type}\n1 FAMF ".i18n::translate('Private'); break; + case 'OBJE': default: + // Other objects have no name/title, so add an inline note $newrec="0 @{$gid}@ {$type}\n1 NOTE ".i18n::translate('Private'); } return $newrec; |
