aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-07-01 03:17:45 +0530
committerDhruv <dhruv.goel92@gmail.com>2012-07-12 17:32:02 +0530
commit06eeed058df75c41496c5306bfa35725c45cf5f3 (patch)
tree7f8c01a15d28e83368f8d5195d6243971350b966 /phpBB/includes/search
parent4a11a7b97027743b8239d31a4d51824bd807c5ac (diff)
downloadforums-06eeed058df75c41496c5306bfa35725c45cf5f3.tar
forums-06eeed058df75c41496c5306bfa35725c45cf5f3.tar.gz
forums-06eeed058df75c41496c5306bfa35725c45cf5f3.tar.bz2
forums-06eeed058df75c41496c5306bfa35725c45cf5f3.tar.xz
forums-06eeed058df75c41496c5306bfa35725c45cf5f3.zip
[feature/sphinx-fulltext-search] remove unused arrays
PHPBB3-10946
Diffstat (limited to 'phpBB/includes/search')
-rw-r--r--phpBB/includes/search/fulltext_sphinx.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/phpBB/includes/search/fulltext_sphinx.php b/phpBB/includes/search/fulltext_sphinx.php
index 53bff898eb..4c0adcd99e 100644
--- a/phpBB/includes/search/fulltext_sphinx.php
+++ b/phpBB/includes/search/fulltext_sphinx.php
@@ -395,14 +395,7 @@ class phpbb_search_fulltext_sphinx
$this->sphinx->SetMatchMode(SPH_MATCH_ANY);
}
- $match = array();
- // Keep quotes
- $match[] = "#&quot;#";
- // KeepNew lines
- $match[] = "#[\n]+#";
-
- $replace = array('"', " ");
-
+ // Keep quotes and new lines
$keywords = str_replace(array('&quot;', "\n"), array('"', ' '), trim($keywords));
if (strlen($keywords) > 0)