aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-30 18:43:42 -0800
committerFriendika <info@friendika.com>2010-12-30 18:43:42 -0800
commitafaacd134c7127a66741c452818f9bfc00d48dd8 (patch)
tree97be234b79ccad9be92ad65855fef0662c43f11b /include/bbcode.php
parent9296d178b3696a0cf408d006b7fb9832a3344dcb (diff)
downloadvolse-hubzilla-afaacd134c7127a66741c452818f9bfc00d48dd8.tar.gz
volse-hubzilla-afaacd134c7127a66741c452818f9bfc00d48dd8.tar.bz2
volse-hubzilla-afaacd134c7127a66741c452818f9bfc00d48dd8.zip
linkify audio/video links for non-html5 browsers (or those with unsupported codecs?)
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 646401ddb..ef31f5a66 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -80,9 +80,9 @@ function bbcode($Text) {
// html5 video and audio
- $Text = preg_replace("/\[video\](.+?)\[\/video\]/", '<video src="$1" controls="controls" width="425" height="350">$1</video>', $Text);
+ $Text = preg_replace("/\[video\](.+?)\[\/video\]/", '<video src="$1" controls="controls" width="425" height="350"><a href="$1">$1</a></video>', $Text);
- $Text = preg_replace("/\[audio\](.+?)\[\/audio\]/", '<audio src="$1" controls="controls">$1</audio>', $Text);
+ $Text = preg_replace("/\[audio\](.+?)\[\/audio\]/", '<audio src="$1" controls="controls"><a href="$1">$1</a></audio>', $Text);
// [img=widthxheight]image source[/img]