mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
r482
Конец света, всем удачно отпраздновать его xD git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@482 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
d83d147ed0
commit
88b6803c6d
2 changed files with 10 additions and 10 deletions
|
@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.5 pre-stable';
|
||||
$bb_cfg['tp_release_date'] = '6-12-2012';
|
||||
$bb_cfg['tp_release_state'] = 'R481';
|
||||
$bb_cfg['tp_release_date'] = '21-12-2012';
|
||||
$bb_cfg['tp_release_state'] = 'R482';
|
||||
|
||||
// Database
|
||||
$charset = 'utf8';
|
||||
|
|
|
@ -339,15 +339,15 @@ $title_match_sql = '';
|
|||
|
||||
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" : '';
|
||||
$search_text_sql = DB()->escape($title_match);
|
||||
$title_match_sql = "
|
||||
AND MATCH (t.topic_title) AGAINST ('$search_text_sql'". $search_bool_mode .")
|
||||
";
|
||||
$start = 0;
|
||||
$forum_topics = $topics_per_page;
|
||||
$title_match_val = clean_text_match($tmp, true, false, false);
|
||||
$title_match_topics = get_title_match_topics($title_match_val, array(0 => $forum_id));
|
||||
|
||||
if ($search_match_topics_csv = join(',', $title_match_topics))
|
||||
{
|
||||
$title_match_sql = "AND t.topic_id IN($search_match_topics_csv)";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue