aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-21 21:50:02 -0700
committerfriendica <info@friendica.com>2013-06-21 21:50:02 -0700
commitb841f825b5befc1fd03dfe49b3af3f31403c9d97 (patch)
tree79e9cd1e0565b7e24333249ddf3ba2d055b32749 /include/bbcode.php
parent2fbc78e6cdf9ca01c404d1bf539008a4b384964f (diff)
downloadvolse-hubzilla-b841f825b5befc1fd03dfe49b3af3f31403c9d97.tar.gz
volse-hubzilla-b841f825b5befc1fd03dfe49b3af3f31403c9d97.tar.bz2
volse-hubzilla-b841f825b5befc1fd03dfe49b3af3f31403c9d97.zip
linkify the non-embeddable video
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 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