это уже давно устарело
This commit is contained in:
Dmitry Larchikov 2014-09-28 14:55:41 +04:00
commit c88b41e35c

View file

@ -422,7 +422,6 @@ function add_search_words ($post_id, $post_message, $topic_title = '', $only_ret
global $bb_cfg;
$text = $topic_title .' '. $post_message;
$text = strip_bbcode_uid($text);
$words = ($text) ? extract_search_words($text) : array();
if ($only_return_words || $bb_cfg['search_engine_type'] == 'sphinx')
@ -841,16 +840,6 @@ function bbcode2html ($text)
return $bbcode->bbcode2html($text);
}
function strip_bbcode_uid ($text)
{
$text = str_replace('[tab]', ' ', $text);
$text = str_replace('"', '"', $text);
$text = str_replace('code:1:', 'code:', $text);
$text = str_replace('list:u:', 'list:', $text);
$text = str_replace('list:o:', 'list:', $text);
return $text;
}
class words_rate
{
var $dbg_mode = false;