1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-22 19:07:27 +01:00

[feature/sphinx-fulltext-search] remove unused arrays

PHPBB3-10946
This commit is contained in:
Dhruv Goel 2012-07-01 03:17:45 +05:30 committed by Dhruv
parent 4a11a7b970
commit 06eeed058d

View File

@ -395,14 +395,7 @@ class phpbb_search_fulltext_sphinx
$this->sphinx->SetMatchMode(SPH_MATCH_ANY);
}
$match = array();
// Keep quotes
$match[] = "#"#";
// KeepNew lines
$match[] = "#[\n]+#";
$replace = array('"', " ");
// Keep quotes and new lines
$keywords = str_replace(array('"', "\n"), array('"', ' '), trim($keywords));
if (strlen($keywords) > 0)