diff options
author | Friendika <info@friendika.com> | 2011-03-03 23:13:16 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-03-03 23:13:16 -0800 |
commit | 3c076b53fe0fb3d5e625b773a5e4723dece0a057 (patch) | |
tree | 98cd0d3c2df669ddc84392efaa3a48df0716f197 /boot.php | |
parent | 15d3be18a96606cdb099050e964a848fb0b252e6 (diff) | |
download | volse-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.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; }} |