diff options
author | friendica <info@friendica.com> | 2013-06-21 21:50:02 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-21 21:50:02 -0700 |
commit | b841f825b5befc1fd03dfe49b3af3f31403c9d97 (patch) | |
tree | 79e9cd1e0565b7e24333249ddf3ba2d055b32749 | |
parent | 2fbc78e6cdf9ca01c404d1bf539008a4b384964f (diff) | |
download | volse-hubzilla-b841f825b5befc1fd03dfe49b3af3f31403c9d97.tar.gz volse-hubzilla-b841f825b5befc1fd03dfe49b3af3f31403c9d97.tar.bz2 volse-hubzilla-b841f825b5befc1fd03dfe49b3af3f31403c9d97.zip |
linkify the non-embeddable video
-rw-r--r-- | include/bbcode.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index a06d8c4d8..862570348 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -428,8 +428,8 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { // if video couldn't be embedded, link to it instead. - $Text = preg_replace("/\[video\](.*?)\[\/video\]/", '$1', $Text); - $Text = preg_replace("/\[audio\](.*?)\[\/audio\]/", '$1', $Text); + $Text = preg_replace("/\[video\](.*?)\[\/video\]/", '<a href="$1">$1</a>', $Text); + $Text = preg_replace("/\[audio\](.*?)\[\/audio\]/", '<a href="$1">$1</a>', $Text); // html5 video and audio |