aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-23 15:43:35 -0800
committerfriendica <info@friendica.com>2014-01-23 15:43:35 -0800
commitab6b6794b4763f864ff29ff9748c669c88f2a1a5 (patch)
tree4647b08030b324ccf1282cb2cbb3aa94947949da /include/bbcode.php
parent9402be6cdc28fb8bb4ee980b88b162565594ca32 (diff)
downloadvolse-hubzilla-ab6b6794b4763f864ff29ff9748c669c88f2a1a5.tar.gz
volse-hubzilla-ab6b6794b4763f864ff29ff9748c669c88f2a1a5.tar.bz2
volse-hubzilla-ab6b6794b4763f864ff29ff9748c669c88f2a1a5.zip
fix marital partner linking
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 9f07b71ce..7e6ef3a2b 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -189,6 +189,10 @@ function bb_ShareAttributes($match) {
return($text);
}
+function bb_location($match) {
+ // not yet implemented
+}
+
function bb_ShareAttributesSimple($match) {
$attributes = $match[1];
@@ -256,6 +260,11 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
$Text = preg_replace_callback("/\[pre\](.*?)\[\/pre\]/ism", 'bb_spacefy',$Text);
}
+// Not yet implemented - thinking this should display a map or perhaps be a map directive
+// if (strpos($Text,'[location]') !== false) {
+// $Text = preg_replace_callback("/\[location\](.*?)\[\/location\]/ism", 'bb_location',$Text);
+// }
+
// If we find any event code, turn it into an event.
@@ -266,6 +275,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
// process [observer] tags before we do anything else because we might
// be stripping away stuff that then doesn't need to be worked on anymore
+
$observer = $a->get_observer();
if ((strpos($Text,'[/observer]') !== false) || (strpos($Text,'[/rpost]') !== false)) {
if ($observer) {