From 3c076b53fe0fb3d5e625b773a5e4723dece0a057 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 3 Mar 2011 23:13:16 -0800 Subject: use prepare_text instead of prepare_body --- boot.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'boot.php') 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; }} -- cgit v1.2.3