aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-12 20:56:23 -0700
committerfriendica <info@friendica.com>2012-08-12 20:56:23 -0700
commit184cf51d2f21782d8fa78d833b1439ed692126ff (patch)
treecc2d74b87c5ac94fe7aa7c97382b6f982810298b /include/bbcode.php
parent9899cfb5c75b6855e158d855ca0dba1344ca6262 (diff)
downloadvolse-hubzilla-184cf51d2f21782d8fa78d833b1439ed692126ff.tar.gz
volse-hubzilla-184cf51d2f21782d8fa78d833b1439ed692126ff.tar.bz2
volse-hubzilla-184cf51d2f21782d8fa78d833b1439ed692126ff.zip
reduce duplication - only provide one system language setting
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 7a88225f0..0889e76ce 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -323,6 +323,8 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
$Text = preg_replace("/\[img\](.*?)\[\/img\]/ism", '<img src="$1" alt="' . t('Image/photo') . '" />', $Text);
+ $Text = preg_replace("/\[crypt\](.*?)\[\/crypt\]/ism",'<br/><img src="' .$a->get_baseurl() . '/images/lock_icon.gif" alt="' . t('Encrypted content') . '" title="' . t('Encrypted content') . '" /><br />', $Text);
+
// Try to Oembed
if ($tryoembed) {
$Text = preg_replace("/\[video\](.*?\.(ogg|ogv|oga|ogm|webm|mp4))\[\/video\]/ism", '<video src="$1" controls="controls" width="' . $a->videowidth . '" height="' . $a->videoheight . '"><a href="$1">$1</a></video>', $Text);