diff --git a/include/ItemObject.php b/include/ItemObject.php index da019a30a..d42e993e6 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -241,7 +241,7 @@ class Item extends BaseObject { $has_bookmarks = false; if(is_array($item['term'])) { foreach($item['term'] as $t) { - if($t['type'] == TERM_BOOKMARK) + if(!UNO && $t['type'] == TERM_BOOKMARK) $has_bookmarks = true; } } diff --git a/include/bbcode.php b/include/bbcode.php index 477436475..eefe7fe98 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -593,6 +593,11 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) $Text = preg_replace("/\[zrl\]([$URLSearchString]*)\[\/zrl\]/ism", '$1', $Text); $Text = preg_replace("/\[zrl\=([$URLSearchString]*)\](.*?)\[\/zrl\]/ism", '$2', $Text); } + + // Remove bookmarks from UNO + if (UNO) + $Text = str_replace('#^', '', $Text); + // Perform MAIL Search if (strpos($Text,'[/mail]') !== false) { $Text = preg_replace("/\[mail\]([$MAILSearchString]*)\[\/mail\]/", '$1', $Text);