diff options
author | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-06-10 16:46:07 +0530 |
---|---|---|
committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-07-05 21:11:23 +0530 |
commit | f83da6c0ef35ce1b8e49bc4b042e49b3d69d4589 (patch) | |
tree | 34d603b93975967ad9fae5c786e9f3ad44b467f1 | |
parent | 8a659964e4788144fde24c4f43362ab2450582f8 (diff) | |
download | forums-f83da6c0ef35ce1b8e49bc4b042e49b3d69d4589.tar forums-f83da6c0ef35ce1b8e49bc4b042e49b3d69d4589.tar.gz forums-f83da6c0ef35ce1b8e49bc4b042e49b3d69d4589.tar.bz2 forums-f83da6c0ef35ce1b8e49bc4b042e49b3d69d4589.tar.xz forums-f83da6c0ef35ce1b8e49bc4b042e49b3d69d4589.zip |
[feature/postgresql-fulltext-search] minor changes
Changes to comply with other backend conventions. include $user as global
variable to access it inside init();
PHPBB3-9730
-rw-r--r-- | phpBB/includes/search/fulltext_postgres.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php index 6b95a4ff67..ad39d16818 100644 --- a/phpBB/includes/search/fulltext_postgres.php +++ b/phpBB/includes/search/fulltext_postgres.php @@ -33,7 +33,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base var $mbstring_regex = false; var $tsearch_builtin = false; - function fulltext_postgres(&$error) + public function __construct(&$error) { global $db, $config; @@ -76,7 +76,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base * * @return string Name */ - function get_name() + public function get_name() { return 'PostgreSQL Fulltext'; } @@ -86,7 +86,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base */ function init() { - global $db; + global $db, $user; if ($db->sql_layer != 'postgres') { |