summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-07-05 18:26:58 +0000
committerfisharebest <fisharebest@gmail.com>2013-07-05 18:26:58 +0000
commit15fcc8b022019a71f4f2f83104f623b31650f137 (patch)
treea77516747ed1e694322b9e44f2466855fe938b5d
parent44ef22794e40d7c00ecf3478f5d6715226838456 (diff)
downloadwebtrees-15fcc8b022019a71f4f2f83104f623b31650f137.tar.gz
webtrees-15fcc8b022019a71f4f2f83104f623b31650f137.tar.bz2
webtrees-15fcc8b022019a71f4f2f83104f623b31650f137.zip
More refactoring - SOUR:PUBL
-rw-r--r--includes/functions/functions_print_facts.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php
index 2893ed12df..4787922a0e 100644
--- a/includes/functions/functions_print_facts.php
+++ b/includes/functions/functions_print_facts.php
@@ -521,10 +521,9 @@ function print_fact_sources($factrec, $level, $return=false) {
}
$data .= ' class="source_citations">';
// PUBL
- $text = get_gedcom_value('PUBL', '1', $source->getGedcom());
- if (!empty($text)) {
- $data .= '<span class="label">'.WT_Gedcom_Tag::getLabel('PUBL').': </span>';
- $data .= $text;
+ $publ = $source->getFactByType('PUBL');
+ if ($publ) {
+ $data .= WT_Gedcom_Tag::getLabelValue('PUBL', $publ->getValue());
}
$data .= printSourceStructure(getSourceStructure($srec));
$data .= '<div class="indent">';