aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-14 23:13:18 -0800
committerfriendica <info@friendica.com>2012-02-14 23:13:18 -0800
commit03171fd7deeb8e564478273ebdbee77eeab4a6cd (patch)
tree1eff806720631bcbaf0a119444c9fd1731d37b0b /include/bbcode.php
parentf86593965389e2592ae41c7e7f5cb6dcfc7a660f (diff)
downloadvolse-hubzilla-03171fd7deeb8e564478273ebdbee77eeab4a6cd.tar.gz
volse-hubzilla-03171fd7deeb8e564478273ebdbee77eeab4a6cd.tar.bz2
volse-hubzilla-03171fd7deeb8e564478273ebdbee77eeab4a6cd.zip
preliminary qcomment support, [nosmile] tag to disable smiley processing
Diffstat (limited to 'include/bbcode.php')
-rwxr-xr-xinclude/bbcode.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 1df2ad725..cae867eb8 100755
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -174,7 +174,10 @@ upper-alpha;">$2</ul>' ,$Text);
$Text = preg_replace("/\[table border=0\](.*?)\[\/table\]/sm", '<table border="0" >$1</table>' ,$Text);
$Text = str_replace('[hr]','<hr />', $Text);
-
+
+ // This is actually executed in prepare_body()
+
+ $Text = str_replace('[nosmile]','',$Text);
// Check for font change text
$Text = preg_replace("/\[font=(.*?)\](.*?)\[\/font\]/sm","<span style=\"font-family: $1;\">$2</span>",$Text);