summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-10-24 13:08:37 +0000
committerfisharebest <fisharebest@gmail.com>2011-10-24 13:08:37 +0000
commitf7df522d7963666d72350084175abf2f068808da (patch)
tree4fc748fa3119c4613956bc6522a215fa3700853d
parent6c07ab64af9bdc4353c911cc06276282a2c69068 (diff)
downloadwebtrees-f7df522d7963666d72350084175abf2f068808da.tar.gz
webtrees-f7df522d7963666d72350084175abf2f068808da.tar.bz2
webtrees-f7df522d7963666d72350084175abf2f068808da.zip
#815509 - URL in Source PULB are Not Links
-rw-r--r--includes/functions/functions_print_facts.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php
index 8a5ecd1cf3..fe0e597c23 100644
--- a/includes/functions/functions_print_facts.php
+++ b/includes/functions/functions_print_facts.php
@@ -219,7 +219,7 @@ function print_fact(WT_Event $fact, WT_GedcomRecord $record) {
case 'PHON': // Not valid as a level 1 tag...
case 'FAX': // Not valid as a level 1 tag...
// These tags always(?) contain LTR data. Make sure they render correctly on RTL pages.
- echo '<div class="field"><span dir="ltr">', htmlspecialchars($fact->getDetail()), '</span></div>';
+ echo '<div class="field" dir="ltr">', htmlspecialchars($fact->getDetail()), '</div>';
break;
case 'EMAIL':
case 'EMAI':
@@ -254,6 +254,9 @@ function print_fact(WT_Event $fact, WT_GedcomRecord $record) {
}
echo '</div>';
break;
+ case 'PUBL': // Publication details might contain URLs.
+ echo '<div class="field">', expand_urls(htmlspecialchars($fact->getDetail())), '</div>';
+ break;
case 'REPO':
if (preg_match('/^@('.WT_REGEX_XREF.')@$/', $fact->getDetail(), $match)) {
print_repository_record($match[1]);