bbcode element of where you are on a site. perhaps this is less than generally useful but I plan to use it in a demo video where there is no other way to accomplish this

This commit is contained in:
friendica 2014-02-12 11:42:33 -08:00
parent ba360b4347
commit e47035f85a

View File

@ -373,7 +373,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
}
}
$Text = str_replace(array('[baseurl]','[sitename]'),array(z_root(),get_config('system','sitename')),$Text);
$Text = str_replace(array('[baseurl]','[sitename]','[sitepath]'),array(z_root(),get_config('system','sitename'),$_SESSION['return_url']),$Text);
// Replace any html brackets with HTML Entities to prevent executing HTML or script