1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-18 16:11:06 +02:00

[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
This commit is contained in:
Dhruv Goel
2012-06-10 16:46:07 +05:30
parent 8a659964e4
commit f83da6c0ef

View File

@ -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')
{