aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-07-03 03:54:01 +0530
committerunknown <Dhruv@Dhruv-XPS.(none)>2012-07-08 01:38:53 +0530
commit70a0caee28559bd1bd52b4ecf9d7d33acd732fe2 (patch)
treefa195ebb12e96aeb050cb24d6942262092fe5604 /phpBB/search.php
parent7a2d36a25eead0a836b7c79ec675a417a2ff5ea6 (diff)
downloadforums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.tar
forums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.tar.gz
forums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.tar.bz2
forums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.tar.xz
forums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.zip
[feature/postgresql-fulltext-search] supports_phrase_search function
function to return the value of the the private property phrase_search PHPBB3-9730
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index c93dbdfd34..1123d7c5b9 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -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(