Конец света, всем удачно отпраздновать его xD git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@482 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
nanosimbiot 2012-12-20 22:21:43 +00:00
commit 88b6803c6d
2 changed files with 10 additions and 10 deletions

View file

@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
// Increase number of revision after update // Increase number of revision after update
$bb_cfg['tp_version'] = '2.5 pre-stable'; $bb_cfg['tp_version'] = '2.5 pre-stable';
$bb_cfg['tp_release_date'] = '6-12-2012'; $bb_cfg['tp_release_date'] = '21-12-2012';
$bb_cfg['tp_release_state'] = 'R481'; $bb_cfg['tp_release_state'] = 'R482';
// Database // Database
$charset = 'utf8'; $charset = 'utf8';

View file

@ -339,15 +339,15 @@ $title_match_sql = '';
if ($title_match =& $_REQUEST[$title_match_key]) if ($title_match =& $_REQUEST[$title_match_key])
{ {
if ($title_match = substr(trim($title_match), 0, $title_match_max_len)) if ($tmp = mb_substr(trim($title_match), 0, $title_match_max_len))
{ {
$search_bool_mode = ($bb_cfg['allow_search_in_bool_mode']) ? " IN BOOLEAN MODE" : ''; $title_match_val = clean_text_match($tmp, true, false, false);
$search_text_sql = DB()->escape($title_match); $title_match_topics = get_title_match_topics($title_match_val, array(0 => $forum_id));
$title_match_sql = "
AND MATCH (t.topic_title) AGAINST ('$search_text_sql'". $search_bool_mode .") if ($search_match_topics_csv = join(',', $title_match_topics))
"; {
$start = 0; $title_match_sql = "AND t.topic_id IN($search_match_topics_csv)";
$forum_topics = $topics_per_page; }
} }
} }