aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-03 23:13:16 -0800
committerFriendika <info@friendika.com>2011-03-03 23:13:16 -0800
commit3c076b53fe0fb3d5e625b773a5e4723dece0a057 (patch)
tree98cd0d3c2df669ddc84392efaa3a48df0716f197 /boot.php
parent15d3be18a96606cdb099050e964a848fb0b252e6 (diff)
downloadvolse-hubzilla-3c076b53fe0fb3d5e625b773a5e4723dece0a057.tar.gz
volse-hubzilla-3c076b53fe0fb3d5e625b773a5e4723dece0a057.tar.bz2
volse-hubzilla-3c076b53fe0fb3d5e625b773a5e4723dece0a057.zip
use prepare_text instead of prepare_body
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index a97f85814..ed7c9956c 100644
--- a/boot.php
+++ b/boot.php
@@ -40,6 +40,8 @@ define ( 'REGISTER_OPEN', 2 );
/**
* relationship types
+ * When used in contact records, this indicates that 'uid' has
+ * this relationship with contact['name']
*/
define ( 'REL_VIP', 1);
@@ -2417,10 +2419,15 @@ function link_compare($a,$b) {
if(! function_exists('prepare_body')) {
function prepare_body($item) {
+ return prepare_text($item['body']);
+}}
+
+if(! function_exists('prepare_text')) {
+function prepare_text($text) {
require_once('include/bbcode.php');
- $s = smilies(bbcode($item['body']));
+ $s = smilies(bbcode($text));
return $s;
}}