diff options
Diffstat (limited to 'phpBB/includes/search/fulltext_native.php')
| -rw-r--r-- | phpBB/includes/search/fulltext_native.php | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/phpBB/includes/search/fulltext_native.php b/phpBB/includes/search/fulltext_native.php index e4c11fd105..727e3aaffb 100644 --- a/phpBB/includes/search/fulltext_native.php +++ b/phpBB/includes/search/fulltext_native.php @@ -1137,13 +1137,7 @@ class fulltext_native extends search_backend // Split old and new post/subject to obtain array of 'words' $split_text = $this->split_message($message); $split_title = $this->split_message($subject); - // www.phpBB-SEO.com SEO TOOLKIT BEGIN - Enable search_ignore_words - $this->filter_nums($split_text); - $this->filter_nums($split_title); - $this->get_ignore_words(); - $split_text = array_diff($split_text, $this->ignore_words); - $split_title = array_diff($split_title, $this->ignore_words); - // www.phpBB-SEO.com SEO TOOLKIT END - Enable search_ignore_words + $cur_words = array('post' => array(), 'title' => array()); $words = array(); @@ -1759,18 +1753,6 @@ class fulltext_native extends search_backend 'config' => array('fulltext_native_load_upd' => 'bool', 'fulltext_native_min_chars' => 'integer:0:255', 'fulltext_native_max_chars' => 'integer:0:255', 'fulltext_native_common_thres' => 'double:0:100') ); } - // www.phpBB-SEO.com SEO TOOLKIT BEGIN - Enable search_ignore_words - /** - * Get rid of integers values in $input array - */ - function filter_nums(&$input) { - foreach ($input as $key => $word) { - if (preg_match('`^[0-9]+$`', $word)) { - unset($input[$key]); - } - } - } - // www.phpBB-SEO.com SEO TOOLKIT END - Enable search_ignore_words } ?>
\ No newline at end of file |
