summaryrefslogtreecommitdiff
path: root/app/Elements/MultimediaFileReference.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-03-19 13:40:41 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-03-19 13:43:02 +0000
commita3287c67b4b5d30f70a82048bceee436a31ff917 (patch)
treebd15983a8a119dc46f4e3d7b1ae158777d7ba3b3 /app/Elements/MultimediaFileReference.php
parentecef0b8f3caa4cf735917233a35afafe8f07cc7f (diff)
downloadwebtrees-a3287c67b4b5d30f70a82048bceee436a31ff917.tar.gz
webtrees-a3287c67b4b5d30f70a82048bceee436a31ff917.tar.bz2
webtrees-a3287c67b4b5d30f70a82048bceee436a31ff917.zip
Fix: #3763 - source citations that are URLs should be links
Diffstat (limited to 'app/Elements/MultimediaFileReference.php')
-rw-r--r--app/Elements/MultimediaFileReference.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/Elements/MultimediaFileReference.php b/app/Elements/MultimediaFileReference.php
index 2cc3cc3f59..11c4a30bc5 100644
--- a/app/Elements/MultimediaFileReference.php
+++ b/app/Elements/MultimediaFileReference.php
@@ -59,12 +59,6 @@ class MultimediaFileReference extends AbstractElement
*/
public function value(string $value, Tree $tree): string
{
- $canonical = $this->canonical($value);
-
- if (preg_match(static::REGEX_URL, $canonical)) {
- return '<a href="' . e($canonical) . '">' . e($canonical) . '</a>';
- }
-
- return parent::value($value, $tree);
+ return $this->valueAutoLink($value);
}
}