From e635dcb3092da962c29fe4c8e4ddc53de368002d Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 6 Jan 2014 23:54:40 -0800 Subject: bbcode convenience variables for producing documentation. --- include/bbcode.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 6374675f1..01d5df9e3 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -276,6 +276,8 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { } } + $Text = str_replace(array('[baseurl]','[sitename]'),array(z_root(),get_config('system','sitename')),$Text); + // Replace any html brackets with HTML Entities to prevent executing HTML or script // Don't use strip_tags here because it breaks [url] search by replacing & with amp -- cgit v1.2.3