diff options
author | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-06-11 16:18:05 +0530 |
---|---|---|
committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-07-05 21:13:35 +0530 |
commit | 6958e8b6d9e63a0f2938aaf8b9a5bbffcbdcf699 (patch) | |
tree | 1715a9c87d50d6b17557ad4e1732c423405e8083 /phpBB/includes | |
parent | d9fd8da37ec8137bc23059605b8759fd4823c531 (diff) | |
download | forums-6958e8b6d9e63a0f2938aaf8b9a5bbffcbdcf699.tar forums-6958e8b6d9e63a0f2938aaf8b9a5bbffcbdcf699.tar.gz forums-6958e8b6d9e63a0f2938aaf8b9a5bbffcbdcf699.tar.bz2 forums-6958e8b6d9e63a0f2938aaf8b9a5bbffcbdcf699.tar.xz forums-6958e8b6d9e63a0f2938aaf8b9a5bbffcbdcf699.zip |
[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
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/search/fulltext_postgres.php | 8 |
1 files 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 <dt><label>' . $user->lang['FULLTEXT_POSTGRES_TS_NAME'] . '</label><br /><span>' . $user->lang['FULLTEXT_POSTGRES_TS_NAME_EXPLAIN'] . '</span></dt> <dd><select name="config[fulltext_postgres_ts_name]">'; - if ($db->sql_layer == 'postgres' && $this->tsearch_builtin) + if ($db->sql_layer == 'postgres' && $this->tsearch_usable) { $sql = 'SELECT cfgname AS ts_name FROM pg_ts_config'; |