summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-06-23 22:39:31 +0000
committerfisharebest <fisharebest@gmail.com>2013-06-23 22:39:31 +0000
commita314ecb2d333ae17a96a7885f8699fa4f218e5ff (patch)
treea7d8739dec818fec5f5e4b835b9eff3dcf23db9d /library
parentcdfabec83ab553139eee68f8490d988b200df6a2 (diff)
downloadwebtrees-a314ecb2d333ae17a96a7885f8699fa4f218e5ff.tar.gz
webtrees-a314ecb2d333ae17a96a7885f8699fa4f218e5ff.tar.bz2
webtrees-a314ecb2d333ae17a96a7885f8699fa4f218e5ff.zip
Remove unused variable
Diffstat (limited to 'library')
-rw-r--r--library/WT/GedcomRecord.php5
-rw-r--r--library/WT/Note.php2
-rw-r--r--library/WT/Repository.php2
-rw-r--r--library/WT/Source.php2
4 files changed, 4 insertions, 7 deletions
diff --git a/library/WT/GedcomRecord.php b/library/WT/GedcomRecord.php
index 5e75369e62..2b67f6caa4 100644
--- a/library/WT/GedcomRecord.php
+++ b/library/WT/GedcomRecord.php
@@ -33,7 +33,6 @@ class WT_GedcomRecord {
const URL_PREFIX = 'gedrecord.php?pid=';
protected $xref =null; // The record identifier
- protected $type =null; // INDI, FAM, etc.
public $ged_id =null; // The gedcom file, only set if this record comes from the database
protected $_gedrec =null; // Raw gedcom text (unprivatised)
private $gedrec =null; // Raw gedcom text (privatised)
@@ -54,7 +53,6 @@ class WT_GedcomRecord {
if (is_array($data)) {
// Construct from a row from the database
$this->xref =$data['xref'];
- $this->type =$data['type'];
$this->ged_id =$data['ged_id'];
$this->_gedrec=$data['gedrec'];
} else {
@@ -62,7 +60,6 @@ class WT_GedcomRecord {
$this->_gedrec=$data;
if (preg_match('/^0 (?:@('.WT_REGEX_XREF.')@ )?('.WT_REGEX_TAG.')/', $data, $match)) {
$this->xref=$match[1];
- $this->type=$match[2];
$this->ged_id=WT_GED_ID;
}
}
@@ -438,7 +435,7 @@ class WT_GedcomRecord {
// Generate a private version of this record
protected function createPrivateGedcomRecord($access_level) {
- return "0 @".$this->xref."@ ".$this->type."\n1 NOTE ".WT_I18N::translate('Private');
+ return '0 @' . $this->xref . '@ ' . static::RECORD_TYPE . "\n1 NOTE " . WT_I18N::translate('Private');
}
// Convert a name record into sortable and full/display versions. This default
diff --git a/library/WT/Note.php b/library/WT/Note.php
index a97f87e542..0f1cedafa0 100644
--- a/library/WT/Note.php
+++ b/library/WT/Note.php
@@ -51,7 +51,7 @@ class WT_Note extends WT_GedcomRecord {
// Generate a private version of this record
protected function createPrivateGedcomRecord($access_level) {
- return '0 @'.$this->xref.'@ NOTE '.WT_I18N::translate('Private');
+ return '0 @' . $this->xref . '@ NOTE ' . WT_I18N::translate('Private');
}
// Fetch the record from the database
diff --git a/library/WT/Repository.php b/library/WT/Repository.php
index 3959c1a840..c104238a68 100644
--- a/library/WT/Repository.php
+++ b/library/WT/Repository.php
@@ -47,7 +47,7 @@ class WT_Repository extends WT_GedcomRecord {
// Generate a private version of this record
protected function createPrivateGedcomRecord($access_level) {
- return "0 @".$this->xref."@ REPO\n1 NAME ".WT_I18N::translate('Private');
+ return '0 @' . $this->xref . "@ REPO\n1 NAME " . WT_I18N::translate('Private');
}
// Get an array of structures containing all the names in the record
diff --git a/library/WT/Source.php b/library/WT/Source.php
index 3e1c2db595..3664e4af69 100644
--- a/library/WT/Source.php
+++ b/library/WT/Source.php
@@ -49,7 +49,7 @@ class WT_Source extends WT_GedcomRecord {
// Generate a private version of this record
protected function createPrivateGedcomRecord($access_level) {
- return "0 @".$this->xref."@ ".$this->type."\n1 TITL ".WT_I18N::translate('Private');
+ return '0 @' . $this->xref . "@ SOUR\n1 TITL " . WT_I18N::translate('Private');
}
// Fetch the record from the database