aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-06 23:54:40 -0800
committerfriendica <info@friendica.com>2014-01-06 23:54:40 -0800
commite635dcb3092da962c29fe4c8e4ddc53de368002d (patch)
treeb7bfdce7e46d5ca21ce46981e6e1fa9c897089ab
parent2f27d58dfea06485abbb772297bcd875fe6779da (diff)
downloadvolse-hubzilla-e635dcb3092da962c29fe4c8e4ddc53de368002d.tar.gz
volse-hubzilla-e635dcb3092da962c29fe4c8e4ddc53de368002d.tar.bz2
volse-hubzilla-e635dcb3092da962c29fe4c8e4ddc53de368002d.zip
bbcode convenience variables for producing documentation.
-rw-r--r--include/bbcode.php2
1 files changed, 2 insertions, 0 deletions
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