summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-01-29 15:23:44 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-01-29 15:23:44 +0000
commit228ede813b31103a219e65080913e49e774d3472 (patch)
tree9791b0b888f83ca29b39658e38927e5ad9740616 /app
parent14b7cbdef307f1647f74d236e57fb238c1cf177f (diff)
downloadwebtrees-228ede813b31103a219e65080913e49e774d3472.tar.gz
webtrees-228ede813b31103a219e65080913e49e774d3472.tar.bz2
webtrees-228ede813b31103a219e65080913e49e774d3472.zip
Do not add 'NOTE Private' when creating private export
Diffstat (limited to 'app')
-rw-r--r--app/GedcomRecord.php2
-rw-r--r--app/Header.php12
-rw-r--r--app/Note.php12
-rw-r--r--app/Repository.php12
-rw-r--r--app/Source.php12
-rw-r--r--app/Submission.php11
-rw-r--r--app/Submitter.php12
7 files changed, 1 insertions, 72 deletions
diff --git a/app/GedcomRecord.php b/app/GedcomRecord.php
index 81b288c694..bd65d0f2bd 100644
--- a/app/GedcomRecord.php
+++ b/app/GedcomRecord.php
@@ -1180,7 +1180,7 @@ class GedcomRecord
*/
protected function createPrivateGedcomRecord(int $access_level): string
{
- return '0 @' . $this->xref . '@ ' . static::RECORD_TYPE . "\n1 NOTE " . I18N::translate('Private');
+ return '0 @' . $this->xref . '@ ' . static::RECORD_TYPE;
}
/**
diff --git a/app/Header.php b/app/Header.php
index 08f498095e..af22e9f5e7 100644
--- a/app/Header.php
+++ b/app/Header.php
@@ -64,18 +64,6 @@ class Header extends GedcomRecord
}
/**
- * Generate a private version of this record
- *
- * @param int $access_level
- *
- * @return string
- */
- protected function createPrivateGedcomRecord(int $access_level): string
- {
- return '0 HEAD' . $this->xref . "@ SUBM\n1 NAME " . I18N::translate('Private');
- }
-
- /**
* Extract names from the GEDCOM record.
*
* @return void
diff --git a/app/Note.php b/app/Note.php
index eb5022c9ca..b9356c97d0 100644
--- a/app/Note.php
+++ b/app/Note.php
@@ -106,18 +106,6 @@ class Note extends GedcomRecord
}
/**
- * Generate a private version of this record
- *
- * @param int $access_level
- *
- * @return string
- */
- protected function createPrivateGedcomRecord(int $access_level): string
- {
- return '0 @' . $this->xref . '@ NOTE ' . I18N::translate('Private');
- }
-
- /**
* Create a name for this note - apply (and remove) markup, then take
* a maximum of 100 characters from the first non-empty line.
*
diff --git a/app/Repository.php b/app/Repository.php
index a8b95ea2c7..308a4ca180 100644
--- a/app/Repository.php
+++ b/app/Repository.php
@@ -64,18 +64,6 @@ class Repository extends GedcomRecord
}
/**
- * Generate a private version of this record
- *
- * @param int $access_level
- *
- * @return string
- */
- protected function createPrivateGedcomRecord(int $access_level): string
- {
- return '0 @' . $this->xref . "@ REPO\n1 NAME " . I18N::translate('Private');
- }
-
- /**
* Extract names from the GEDCOM record.
*
* @return void
diff --git a/app/Source.php b/app/Source.php
index 65ed8108e8..ccd3a44512 100644
--- a/app/Source.php
+++ b/app/Source.php
@@ -87,18 +87,6 @@ class Source extends GedcomRecord
}
/**
- * Generate a private version of this record
- *
- * @param int $access_level
- *
- * @return string
- */
- protected function createPrivateGedcomRecord(int $access_level): string
- {
- return '0 @' . $this->xref . "@ SOUR\n1 TITL " . I18N::translate('Private');
- }
-
- /**
* Extract names from the GEDCOM record.
*
* @return void
diff --git a/app/Submission.php b/app/Submission.php
index a9c22c9bb3..74bacfc9cd 100644
--- a/app/Submission.php
+++ b/app/Submission.php
@@ -84,17 +84,6 @@ class Submission extends GedcomRecord
}
/**
- * Generate a private version of this record
- *
- * @param int $access_level
- *
- * @return string
- */
- protected function createPrivateGedcomRecord(int $access_level): string
- {
- return '0 @' . $this->xref . "@ SUBM\n1 NAME " . I18N::translate('Private');
- }
- /**
* Extract names from the GEDCOM record.
*
* @return void
diff --git a/app/Submitter.php b/app/Submitter.php
index 5f17b59915..9619da4c48 100644
--- a/app/Submitter.php
+++ b/app/Submitter.php
@@ -64,18 +64,6 @@ class Submitter extends GedcomRecord
}
/**
- * Generate a private version of this record
- *
- * @param int $access_level
- *
- * @return string
- */
- protected function createPrivateGedcomRecord(int $access_level): string
- {
- return '0 @' . $this->xref . "@ SUBM\n1 NAME " . I18N::translate('Private');
- }
-
- /**
* Extract names from the GEDCOM record.
*
* @return void