diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-12-28 11:16:50 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-12-28 11:16:50 +0000 |
| commit | 7393039fb51c022ce73719928f38089599d0da38 (patch) | |
| tree | 4516322721066be51c6d0709b9a49376aa85376f | |
| parent | cdb8eb03db713cac6568bd8f24a52d46ba610f6d (diff) | |
| download | webtrees-7393039fb51c022ce73719928f38089599d0da38.tar.gz webtrees-7393039fb51c022ce73719928f38089599d0da38.tar.bz2 webtrees-7393039fb51c022ce73719928f38089599d0da38.zip | |
Remove unused code
| -rw-r--r-- | includes/functions/functions_print.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php index 840787c653..ea83f3b2f4 100644 --- a/includes/functions/functions_print.php +++ b/includes/functions/functions_print.php @@ -423,14 +423,7 @@ function print_note_record($text, $nlevel, $nrec, $textOnly=false) { return WT_Gedcom_Tag::getLabelValue($label, $html); } else { // A multi-line note, with an expand/collapse option - $element_id = 'n-' . uniqid(); - list($first, $rest) = explode("\n", $html, 2); - // If the first line contains HTML, we cannot easily display it after the "Note:" label. - // It may contain the first line of a table, an HREF that spans newlines, etc. - if (strpos($first, '<') !== false) { - $first = ''; - $rest = $html; - } + $element_id = uniqid('n-'); return '<div class="fact_NOTE"><span class="label">' . '<a href="#" onclick="expand_layer(\'' . $element_id . '\'); return false;"><i id="' . $element_id . '_img" class="icon-plus"></i></a> ' . WT_Gedcom_Tag::getLabel($label) . ': ' . |
