diff options
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/search/fulltext_postgres.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php index 79c8035438..84ce674564 100644 --- a/phpBB/includes/search/fulltext_postgres.php +++ b/phpBB/includes/search/fulltext_postgres.php @@ -27,10 +27,10 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base private $tsearch_usable = false; private $version; private $tsearch_query; + private $phrase_search = false; public $search_query; public $common_words = array(); public $word_length = array(); - public $phrase_search = false; /** * Constructor @@ -71,6 +71,18 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base } /** + * Returns if phrase search is supported or not + * + * @return bool + * + * @access public + */ + public function supports_phrase_search() + { + return $this->phrase_search; + } + + /** * Checks for correct PostgreSQL version and stores min/max word length in the config * * @return string|bool Language key of the error/incompatiblity occured |