diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2012-08-16 23:16:26 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2012-08-16 23:17:06 +0530 |
commit | 9b9dc2fab71ec95c4dc48787dd9950872773cfa7 (patch) | |
tree | b7248fb6c29ad3d4aa22681366569e11ee0c5449 | |
parent | 7402328b8177a2080cc269be12aeb84f54d65a22 (diff) | |
download | forums-9b9dc2fab71ec95c4dc48787dd9950872773cfa7.tar forums-9b9dc2fab71ec95c4dc48787dd9950872773cfa7.tar.gz forums-9b9dc2fab71ec95c4dc48787dd9950872773cfa7.tar.bz2 forums-9b9dc2fab71ec95c4dc48787dd9950872773cfa7.tar.xz forums-9b9dc2fab71ec95c4dc48787dd9950872773cfa7.zip |
[ticket/11051] use get_common_words in search backend
Use get_common_words() instead of accessing the common_words property
directly as it is now protected.
PHPBB3-11051
-rw-r--r-- | phpBB/search.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index c6c92e68b0..fd67b483e8 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -293,7 +293,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) $correct_query = $search->split_keywords($keywords, $search_terms); if (!$correct_query || (!$search->get_search_query() && !sizeof($author_id_ary) && !$search_id)) { - $ignored = (sizeof($search->common_words)) ? sprintf($user->lang['IGNORED_TERMS_EXPLAIN'], implode(' ', $search->common_words)) . '<br />' : ''; + $ignored = (sizeof($search->get_common_words())) ? sprintf($user->lang['IGNORED_TERMS_EXPLAIN'], implode(' ', $search->get_common_words())) . '<br />' : ''; trigger_error($ignored . $user->lang('NO_KEYWORDS', $user->lang('CHARACTERS', (int) $search->word_length['min']), $user->lang('CHARACTERS', (int) $search->word_length['max']))); } } @@ -610,7 +610,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) 'SEARCH_MATCHES' => $l_search_matches, 'SEARCH_WORDS' => $keywords, 'SEARCHED_QUERY' => $search->get_search_query(), - 'IGNORED_WORDS' => (sizeof($search->common_words)) ? implode(' ', $search->common_words) : '', + 'IGNORED_WORDS' => (sizeof($search->get_common_words())) ? implode(' ', $search->get_common_words()) : '', 'PAGE_NUMBER' => phpbb_on_page($template, $user, $u_search, $total_match_count, $per_page, $start), 'PHRASE_SEARCH_DISABLED' => $phrase_search_disabled, |