1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-18 22:41:28 +02:00

[feature/postgresql-fulltext-search] supports_phrase_search function

function to return the value of the the private property phrase_search

PHPBB3-9730
This commit is contained in:
Dhruv Goel
2012-07-03 03:54:01 +05:30
committed by unknown
parent 7a2d36a25e
commit 70a0caee28
2 changed files with 15 additions and 3 deletions

View File

@@ -598,9 +598,9 @@ if ($keywords || $author || $author_id || $search_id || $submit)
// Check if search backend supports phrase search or not
$phrase_search_disabled = '';
if (strpos(html_entity_decode($keywords), '"') !== false && isset($search->phrase_search))
if (strpos(html_entity_decode($keywords), '"') !== false && method_exists($search, 'supports_phrase_search'))
{
$phrase_search_disabled = $search->phrase_search ? false : true;
$phrase_search_disabled = $search->supports_phrase_search() ? false : true;
}
$template->assign_vars(array(