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:
parent
4a11a7b970
commit
06eeed058d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user