diff --git a/boot.php b/boot.php index a97f858140..ed7c9956cf 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; }} diff --git a/view/de/profile_advanced.php b/view/de/profile_advanced.php index aec1b01087..ec6eb6e3ae 100644 --- a/view/de/profile_advanced.php +++ b/view/de/profile_advanced.php @@ -113,7 +113,7 @@ $o .= <<< EOT EOT; } -if($txt = prepare_body($a->profile['about'])) { +if($txt = prepare_text($a->profile['about'])) { $o .= <<< EOT