G
Gemini_13
Гость
if ( !empty($last_message) )
{
$messages = ( $last_message != $message ) ? $last_message . $separator . $message : $message;
$added = 1;
if(mb_strlen($messages) > 2)
{
DB()->sql_query("UPDATE ". BB_POSTS_TEXT ." SET post_text = '". DB()->escape($messages) ."' WHERE post_id = $post_id LIMIT 1");
add_search_words($post_id, stripslashes($messages));
update_post_html(array(
'post_id' => $post_id,
'post_text' => $messages,
));
$this->response['html'] = bbcode2html($messages);
$this->response['post_id'] = $post_id;
$this->response['redirect'] = make_url(POST_URL . "$post_id#$post_id");
}
}