use prepare_text instead of prepare_body
This commit is contained in:
parent
15d3be18a9
commit
3c076b53fe
5 changed files with 48 additions and 42 deletions
9
boot.php
9
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;
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue