diff options
| author | Michael Scherer <misc@zarb.org> | 2011-04-19 12:53:36 +0200 |
|---|---|---|
| committer | Michael Scherer <misc@zarb.org> | 2011-04-19 12:53:36 +0200 |
| commit | 1bac695a72e263a4bd71d1d8079e06bb227c1077 (patch) | |
| tree | 7246e2206346fb635a9bb69fac942ead2d9d80b7 /phpBB/includes/search/fulltext_native.php | |
| parent | b85c3b967a7f6fa061439061076695613622960c (diff) | |
| download | forums-1bac695a72e263a4bd71d1d8079e06bb227c1077.tar forums-1bac695a72e263a4bd71d1d8079e06bb227c1077.tar.gz forums-1bac695a72e263a4bd71d1d8079e06bb227c1077.tar.bz2 forums-1bac695a72e263a4bd71d1d8079e06bb227c1077.tar.xz forums-1bac695a72e263a4bd71d1d8079e06bb227c1077.zip | |
revert previous commit, as phpbb-seo is incompatible with phpbb license
the commit is still in git, and can be reserected with a branch, but
having it on HEAD make forum deployment more difficult
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 |
