From 6958e8b6d9e63a0f2938aaf8b9a5bbffcbdcf699 Mon Sep 17 00:00:00 2001 From: Dhruv Goel Date: Mon, 11 Jun 2012 16:18:05 +0530 Subject: [PATCH] [feature/postgresql-fulltext-search] fix variable name Variable name used is now tsearch_usable instead of tsearch_builtin to reflect its actual purpose. PHPBB3-9730 --- phpBB/includes/search/fulltext_postgres.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php index 1d92a16eda..7d1066e884 100644 --- a/phpBB/includes/search/fulltext_postgres.php +++ b/phpBB/includes/search/fulltext_postgres.php @@ -30,7 +30,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base var $common_words = array(); var $pcre_properties = false; var $mbstring_regex = false; - var $tsearch_builtin = false; + var $tsearch_usable = false; public function __construct(&$error) { @@ -57,7 +57,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base $pgsql_version = explode('.', substr($db->sql_server_info(), 10)); if ($pgsql_version[0] >= 9 || $pgsql_version[0] == 8 && $pgsql_version[1] >= 3) { - $this->tsearch_builtin = true; + $this->tsearch_usable = true; } } @@ -86,7 +86,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base return $user->lang['FULLTEXT_POSTGRES_INCOMPATIBLE_VERSION']; } - if (!$this->tsearch_builtin) + if (!$this->tsearch_usable) { return $user->lang['FULLTEXT_POSTGRES_TS_NOT_FOUND']; } @@ -869,7 +869,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base

' . $user->lang['FULLTEXT_POSTGRES_TS_NAME_EXPLAIN'] . '